# print-color(2)

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## NAME

print-color - Create a new printer color
print-scheme - Create a new printer color and font scheme

## SYNOPSIS

n print-color "col-no" "red" "green" "blue"
n print-scheme "schemeNum" "fore" "back" "font-mask"

## DESCRIPTION

print-color and print-scheme are similar to add-color(2) and add-color-scheme(2) except they configure MicroEmacs's printer scheme.

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.

## NOTES

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.

## SEE ALSO

scheme-editor(3), print-setup(3), print-buffer(2), hilight(2), $buffer-hilight(5).

(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12

</HMTL>