Skip to content

Feature: Support of clear screen #56

@OllisGit

Description

@OllisGit

First: Thx, a lot for this nice toolkit!!!!

Sometimes I want to start with a clear screen and the ANSI support this feature:
see: https://en.wikipedia.org/wiki/ANSI_escape_code (look for Erase in Display)

	StringBuilder clearScreenEscBuilder = new StringBuilder();
        char c = 27;
        char c2 = '[';
        clearScreenEscBuilder.append(c);
        clearScreenEscBuilder.append(c2);
        clearScreenEscBuilder.append("2");
        clearScreenEscBuilder.append("J");
		
        String clear = clearScreenEscBuilder.toString();
        String text = "�[34mMy Super Duper blue text on a clear screen�[0m";
        System.out.println(clear);
        System.out.println(text);

What do you think?

BR
Olli

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions