Re: color names

Alain Bench <[email protected]>
Newsgroups gmane.network.slrn.user
Message-ID <[email protected]>
Hello Joe,

 On Sunday, July 1, 2007 at 17:15:30 +0200, Joe Koenig wrote:

> please enlighten me on the intrinsic logic of the SLRN color handling.

    When a terminal has 8 colors, Slrn can combine colors #0 to #7 with
the /blink/ attribute to get paper colors #8 to #15. However this trick
is terminal-dependant: Some then do bright paper, others do blink, and
sometimes it's configurable. To suppress any risk of annoying flashes,
Slrn has the use_blink variable set to off by default on color
terminals.

    When a terminal has 16 (or more) colors, Slrn doesn't use this
/blink/ trick, but directly the right upto #15 color of the palette.
Much cleaner.

    The same applies to ink colors, but the combining attribute giving
8 bright colors is then /bold/.


>| color cursor "red" "white"

    In Slrn, /white/ is a bright color, that others would call
/brightwhite/, #15 on the palette. To assign such color to the paper,
you need to either:

 · Set use_blink and setup your terminal so /blink/ does bright paper.

 · Use a 16 color terminal.


    Modern Xterms support 256 colors. Try to use a terminfo entry
declaring them all: Export TERM=xterm-256color

| $ TERM=xterm		tput colors
| 8
|
| $ TERM=xterm-256color	tput colors
| 256


Bye!	Alain.
-- 
Give your computer's unused idle processor cycles to a scientific goal:
The Folding@home project at <URL:http://folding.stanford.edu/>.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.