I want to print some box drawing characters to the screen. Here is my code:
public static void main(final String... args) {
AnsiConsole.systemInstall();
System.out.println("\u2514\u2500");
}
However this prints:
C:\Projects\public\test>java -jar target/test.jar
ÔööÔöÇ
If I remove the AnsiConsole.systemInstall() I get this:
C:\Projects\public\test>java -jar target/test.jar
└─
On linux everything is fine. This only breaks on windows (tested with cmd.exe and Windows Home 11).
I do want to continue using AnsiConsole because I want to print colors. And that part works great. I don't want to have to choose between colors or fancy drawing.
I want to print some box drawing characters to the screen. Here is my code:
However this prints:
If I remove the
AnsiConsole.systemInstall()I get this:On linux everything is fine. This only breaks on windows (tested with cmd.exe and Windows Home 11).
I do want to continue using AnsiConsole because I want to print colors. And that part works great. I don't want to have to choose between colors or fancy drawing.