On Wed, Jun 09, 2010 at 04:48:58PM +0200, Michael Ludwig wrote:
>Michael Ludwig schrieb am 09.06.2010 um 16:09 (+0200):
>
>> http://code.google.com/p/joeldotfiles/source/browse/trunk/256colors2.pl
>> 
>> Fantastic! Works great on rxvt and MinTTY on Cygwin. I didn't know the
>> terminal could be so colorful, used to think it was limited to 256
>> colors.
>
>And there are colors beyond 255, but it looks like they repeat:
>
>$ perl
>@c = map sprintf( "\x1b[48;5;%um%4u", $_, $_), 0 .. 1023;
>print "@r\n" while @r = splice @c, 0, 32;

16 bit + does have more colors ;-)

... but for some reason, terminals only have been defined a limited few.

... and like I already mentioned, the virtual terminals (the default linux
terminal) don't know how to even use these colors due to kernel code.

Here's the post stating the specifics & limitations.

"TTY with 256 colors?"
http://superuser.com/questions/67582/tty-with-256-colors

"If you want 256 color support on virtual terminals you'll have to build you
own kernel after extending the code that parses the escape sequences to
handle the wider color-specification."

This is why I'm avoiding 256 colors for now, because I use both virtual and
Xorg terminals, and if applications are defined to use 256, they (VIM) tend
to screw their colors on any default color spec display (ie. linux virtual
terminals).

Enjoy 256 color if you can!  Code seems to be more easily read with the
extended colors in VIM/GVIM. ;-)

-- 
Roger
http://rogerx.freeshell.org/

Reply via email to