I am having ANSI escape-sequences inline in code that works, but I cannot get it to work when reading the same string from at text file.
dOut.writeBytes("\033[0;31;1m> help (?) - Get help\n");
(dOut = DataOutputStream)
This prints red text og black background.
When reading the exact same line from a text file it does not work, it prints the line as pure text.
BufferedReader menuReader = new BufferedReader(new FileReader("help.txt"));
while ((menuLine = menuReader.readLine()) != null) {
dOut.writeBytes(menuLine + "\n");
}
menuReader.close();
Text file has only one line: \033[0;31;1m> help (?) - Get help