wsh color escape sequences

Kipp Hickman kipp at warp.esd.sgi.com
Thu Mar 28 02:52:57 AEST 1991


Here is the stuff from the latest man page (you don't have it so don't feel bad):

     CSI Pv m    Set graphics rendition.  Each parameter is examined  in  turn
                 and applied to the current graphics rendition.  The following
                 table  defines  what  each  of  the  legal  values  for   the
                 parameters are.

          0      Reset to default.

          1      Enable bold.  Disable half intensity.

          2      Enable half intensity.  Disable bold.

          3      Enable italics.

          4      Enable underlining.

          7      Enable reverse video.

          21     Disable bold (VT100).

          22     Disable half intensity (VT100).

          23     Disable italics (VT100).

          24     Disable underlining (VT100).

          27     Disable reverse video (VT100).

          30-37  Set the text  color  to  black,  red,  green,  yellow,  blue,
                 magenta, cyan or white, respectively (ISO 6429).

          40-47  Set the page  color  to  black,  red,  green,  yellow,  blue,
                 magenta, cyan or white, respectively (ISO 6429).

The -C command defines what some of these colors map to...

Oh yeah - CSI means \033[ and the parameters are ; separated numbers.  For instance, the following sets the text color to red with a black background:

	\033[31;40m

					kipp



More information about the Comp.sys.sgi mailing list