-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Colour leakage on Windows CMD & Cygwin #2
Comments
Seems like the ansi reset-color-only code What else doesn't work? Does it leak e.g. underlines or reversed? Those also currently translate to reset-X-only codes. |
BTW, has anybody looked at jansi or lanterna libs? It has windows support. Moreover, it has bindings to Win API like GetConsoleScreenBufferInfo, which can be used as a replacement to direct stty-usage (who needs a /dev/tty, which is absent on Windows). |
Hey,
I'm not sure if fansi supports Windows at the moment. I have seen colours leaking in both Windows 7 CMD and Cygwin.
Issuing the command:
fansi.Color.Red("Hello World Ansi!")
produces:
and I have to manually reset the colours back.
I have tested this on MacOSX and it's not an issue:
The text was updated successfully, but these errors were encountered: