Making a server in java,
First off, Here’s the code.
AnsiConsole.out.println("This is a Test.");
AnsiConsole.out.println("\e[0;31m Red");
AnsiConsole.out.println("\e[0;34m Blue");
AnsiConsole.out.println("\e[0;32m Green");
AnsiConsole.out.println("\e[1;33m Yellow");
So, my issue is that it reads the escape characters as illegal.
Any Comments?
Using the Jansi Library http://jansi.fusesource.org/index.html
I’m assuming you’re trying to produce ANSI Escape Sequences here.
\eis not a valid character in Java, what you need is instead\u001bwhich is the start of the ANSI sequence.