Skip to content
This repository has been archived by the owner on May 8, 2021. It is now read-only.

Missing color support for some escape sequences #74

Closed
Nothing4You opened this issue Apr 11, 2013 · 4 comments
Closed

Missing color support for some escape sequences #74

Nothing4You opened this issue Apr 11, 2013 · 4 comments

Comments

@Nothing4You
Copy link
Sponsor

Expected behavior: colored output and not seeing the escape sequences.
What I got (there are some additional non-printable characters in it which you don't see here):

�[%?%p1%{8}%<%t37%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;7%;m�[%?%p1%{8}%<%t37%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;7%;mSome gray text (or white?) text
�[%?%p1%{8}%<%t37%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;7%;m�[%?%p1%{8}%<%t37%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;7%;m�[%?%p1%{8}%<%t32%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;2%;mSome green text

The example is from a mono application which uses System.ConsoleColor to color the output.
I tried for comparison with urxvt ($TERM=rxvt-unicode-256color, from AUR) and it works with it.

@vodik
Copy link
Collaborator

vodik commented Apr 11, 2013

I don't know how to decipher that output. Mind writing a simple application that, say, writes "Hello World" with colours? Force the colours on, pipe the output into xxd or something and paste the binary output of the application. I'm curious what the escape sequence its generating actually is

But comparing the output between termite and rxvt isn't exactly the most productive thing. Rather, can you check that it works on other vte-based terminals like gnome-terminal? And if it works on gnome-terminal, check to see if it works on termite when you set TERM to whatever gnome-terminal has TERM set to.

@vodik
Copy link
Collaborator

vodik commented Apr 11, 2013

Basically if it works in gnome-terminal, it probably just means something is missing from the terminfo file, and knowing exactly what System.ConsoleColor shold help up figure out what's missing.

@Nothing4You
Copy link
Sponsor Author

Works in gnome-terminal ($TERM=xterm)
The program strips the color info if I pipe it :c

@vodik
Copy link
Collaborator

vodik commented Apr 11, 2013

Just linking to this for reference: esape sequences are generated in this file:

https://github.com/mono/mono/blob/master/mcs/class/corlib/System/TermInfoDriver.cs

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

No branches or pull requests

3 participants