fusesource / jansi

Jansi is a small java library that allows you to use ANSI escape sequences to format your console output which works even on windows.
http://fusesource.github.io/jansi/
Apache License 2.0
1.11k stars 140 forks source link

Error or success ? "Could not get the screen info" #158

Closed joe-mojo closed 2 years ago

joe-mojo commented 5 years ago

logback with JANSI on Windows 10 failed with this cause:

Caused by: java.io.IOException: Could not get the screen info: L'opération a réussi.
        at      at org.fusesource.jansi.WindowsAnsiOutputStream.getConsoleInfo(WindowsAnsiOutputStream.java:116)
        at      at org.fusesource.jansi.WindowsAnsiOutputStream.<init>(WindowsAnsiOutputStream.java:105)
        at      at org.fusesource.jansi.WindowsAnsiOutputStream.<init>(WindowsAnsiOutputStream.java:110)

"L'opération a résussi" means "operation was successful" in french. So throwing an error when a success is reported is quite strange...

gnodet commented 3 years ago

This could happen if the stream wrapped by Jansi is not the system out stream or if the system out is not the windows console (for example if redirected to a file).

I agree the message is weird, but if there is a definitely an error when accessing the console.

gnodet commented 2 years ago

I don't think there's anything to do and we'd need at least a way to reproduce the problem.