-
Notifications
You must be signed in to change notification settings - Fork 140
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
No colors if stdout is redirected #124
Comments
Sorry, I see that it has already been reported: #18 |
Even stranger: if stdout is redirected, then everything that's printed using JAnsi after calling |
System.out and System.err are wrapped independently: see https://github.com/fusesource/jansi/blob/master/jansi/src/main/java/org/fusesource/jansi/AnsiConsole.java#L61 |
It works fine on Ubuntu.
|
ok, I can reproduce your case with Jansi diagnostic: strange need to make some test: help welcome if you can try in parallel |
I finally managed to fix the issue: please test and confirm |
The first is resolved so stderr has colors if stdout is redirected. But the uninstall-thing is still wrong. See the last image. |
ok, uninstall is something else: please open another issue |
closing this issue: please open another one for the uninstall case |
I've write a program that uses both stdout (for "graphical" view) and stderr (for logging), they both have colorized texts. I'm using Win10.
Without any redirect, or if I redirect only stderr, JAnsi works fine.
But if I redirect stdout, the log won't be printed with colors.
This is strange... I think JAnsi uses only stdout for detecting the redirection, but what about stderr?
The text was updated successfully, but these errors were encountered: