Alcor... slrn: colors


If you are using a color xterm, and you wish to see slrn in color, give the "-C" option on the command line to slrn (see the manpage).

It is possible to change slrn's use of color by editing the "color" lines in your slrnrc file. For example, if you'd like the article and group selection arrow to appear in red on a blue background, edit your slrnrc file to contain the line:

color cursor "red" "blue"

Slrn implements colors by using xterm's ISO 6429 extension; the color mapping is as follows:

normal bold --------- --------- 0 black 8 gray 1 red 9 brightred 2 green 10 brightgreen 3 brown 11 yellow 4 blue 12 brightblue 5 magenta 13 brightmagenta 6 cyan 14 brightcyan 7 light gray 15 white

In other words, if you specify the color "brightgreen" for some text element, that element will appear not only in the color "bright green", but also will be in bold face.

If you'd like to use colors other than those listed above, it is possible, but a bit tricky. You must remap one of the above color names (via its color number) to another color using the X resources. For example, if you'd like the article and group selection arrow to appear in lavender (normal, not bolded) on black, you must assign one of the existing "normal" colors (0 to 7) to be lavender. Let's choose "magenta" (color 5). We reassign that color to "lavender" by setting the X resource on the appropriate xterm like so:

XTerm*VT100*color5: Lavender Of course, this means that all text elements assigned color "magenta" will really appear in "lavender".

You must set the X resource on your X server, not on the machine running slrn. If you want to reassign the colors only for the xterm in which you will actually run slrn, then invoke xterm with the "-name" option, and set the resource only for that name. If you don't know how to set X resources, and are thoroughly confused, then try to live with the 16 colors you get by default, or learn more about X.


Copyright, © 2003, Concordia University, (IITS).
Author: Anne Bennett
Credits: (none)
Maintained by: webdoc@alcor.concordia.ca
Last update: 1998/09/10 -- Dana Echtner

  [Alcor Home]
  [Alcor Search]