TrueColor (24 bits) support

Антон Кочков anton.kochkov at gmail.com
Thu Jul 18 10:38:30 CEST 2013


Hm. From the http://lists.suckless.org/dev/1307/16688.html :
> I've been doing some ansi tests and found that only xterm (not urxvt, vte, iterm2,cmd.exe) supports truecolor ansi escape codes.
> It is documented in wikipedia, but afaik, only radare2 uses it (when enabled).
> Do you think that it should be implemented in st or we should stand supporting the most common scenarios?
> True RGB (24bit color) is constructed like this:
> \x1b[38;5;R;G;Bm
> Where 38 is fg (48 is bg)
> And RGB are decimal (1-3chars) from 0-255
Best regards,
Anton Kochkov.


On Thu, Jul 18, 2013 at 11:17 AM, Marc Lehmann <schmorp at schmorp.de> wrote:
> On Thu, Jul 18, 2013 at 10:35:33AM +0400, Антон Кочков <anton.kochkov at gmail.com> wrote:
>> It is very useful to colorize output of it, especially hexview, some
>> bits stuff. Recently 24bits color support was added in it
>> https://github.com/radare/radare2/commit/be46b9da31c7d2b6ac30ea3c62a32016f9482177
>> And it works only under xterm and iterm2
>
> Thats either bad coding in radare2 (the terminfo file indicates how to
> use colour, so it's probably hardcoding terminal names and control codes
> instead of using terminfo), or a problem with the installed terminfo entry
> then. urxvt and xterm are compatible in the way they handle the colour
> palette.
>
> --
>                 The choice of a       Deliantra, the free code+content MORPG
>       -----==-     _GNU_              http://www.deliantra.net
>       ----==-- _       generation
>       ---==---(_)__  __ ____  __      Marc Lehmann
>       --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
>       -=====/_/_//_/\_,_/ /_/\_\




More information about the rxvt-unicode mailing list