-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Box drawing characters don't print correctly after AnsiConsole.systemInstall() in cmd.exe #247
Comments
@codemonstur could you please provide the output of |
Hey @gnodet, I already did. See my comment here: #227 (comment) |
@codemonstur I've reproduced the issue when running on JDK 21. Could you double check that it works for you with JDK 11 ? I'll investigate and try to find a fix in the mean time... |
The problem exists on JDK11 as well. The logo did come out right, but those truecolor and 256 color is probably not what it should be.
There is a bit too much data to stuff it all into one screenshot. So I copy-pasted the regular text at the top and made a screenshot only of the colored bits. |
* Fix wrong output encoding on Windows with JDK >= 19 JDK 19 has changed the system properties used for System.out and System.err encoding, see https://www.oracle.com/java/technologies/javase/19-relnote-issues.html#JDK-8283620 * Fix bad background in logo and add output encoding system properties
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.
The text was updated successfully, but these errors were encountered: