Skip to content
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

Open
ssanj opened this issue Jun 1, 2016 · 2 comments
Open

Colour leakage on Windows CMD & Cygwin #2

ssanj opened this issue Jun 1, 2016 · 2 comments

Comments

@ssanj
Copy link

ssanj commented Jun 1, 2016

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:

image

and I have to manually reset the colours back.

I have tested this on MacOSX and it's not an issue:

image

@lihaoyi
Copy link
Member

lihaoyi commented Jun 4, 2016

Seems like the ansi reset-color-only code \u001b[39m doesn't work in cmd/cygwin?

What else doesn't work? Does it leak e.g. underlines or reversed? Those also currently translate to reset-X-only codes.

@iharh
Copy link

iharh commented Dec 15, 2016

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants