[comp.sys.amiga.tech] Question about X3.64 Printer Excape Sequences

grj@tellabs.com (Gary Jenkins) (12/03/90)

I am writing a utility that uses the printer driver and am unsure 
how ANSI X3.64 printer escape sequences relate to reality.  Specifically,
the codes to select text color as shown in appendix D of the Intro to the
Amiga 2000 manual are listed as

	ESC[30m		set foreground to color_0
	ESC[31m		set foreground to color_1
	...
	ESC[39m		set foreground to color_9

The question is how to relate color_0, color_1, etc to the color that will
be printed.  For my paintjet, color_0 is black, color_1 is red, color_2 is
green, ..., but other printers may be different, correct?  More specifically
if I allow a menu choice which selects the text color as RED, BLUE, or GREEN,
how do I know which printer escape codes correspond to those colors?
Is it a function of the current preference palette settings?

Thanks in advance,
	Gary Jenkins