print-color - Create a new printer color
print-scheme - Create a new printer color and font scheme
n print-color "col-no" "red" "green" "blue"
n print-scheme "schemeNum" "fore" "back" "font-mask"
print-color creates a new printer color and inserts it into the printer color table, where red, green and blue are the color components and col-no is the printer color index. The printer color table contains 256 entries indexed by col-no in the range 0-255. print-color may also be used to modify an existing col-no index by re-assignment, the existing color definition is over-written with the new color definition.
An argument n of 0 to print-color resets the printer color table, removing all currently defined colors.
print-scheme creates a new printer scheme. A printer scheme maps the hilight(2) buffer's text into a print scheme. For example key words could be printed in bold or in blue etc. print-scheme arguments comprise an identifying index number "schemeNum", two color values, "fore" and "back" (defined by print-color) and a font setting "font-mask". The font-mask is a bit mask where each bit is defined as follows:
0x01 Enable bold font.
0x02 Enable italic font.
0x04 Enable light font.
0x08 Enable reverse font.
0x10 Enable underlining.
An argument n of 0 to print-scheme resets the printer scheme table, removing all currently defined printer schemes.
Printer schemes may be created and altered using the scheme-editor(3) dialog, the created printer scheme may then be used directly in the print-setup(3) dialog. Therefore direct use of these commands is largely redundant.
Copyright (c) 1998-2006 JASSPA
Last Modified: 2002/01/11
Generated On: 2006/10/07