-
-
Notifications
You must be signed in to change notification settings - Fork 52
Closed
Labels
Description
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
Reactions are currently unavailable