[comp.unix.wizards] nroff ascii 033

ped@left.UUCP (10/02/87)

 After trying to decided on the best group to send to
 I came to this one as the only one that might work.

	I wish to put an esc (ascii 033) sequence in my 
text of an nroff document to turn on the color of the printer.
How do we do it? If I send the file directly to the printer 
(cat file | lp) the escape sequence works fine. If I run
the file through nroff (nroff file | lp) forget it, garbage

					HELP.

pls@sortac.UUCP (Pat Sullivan) (10/05/87)

In article <102@left.ATT.COM> ped@left.ATT.COM (P. E. Davidson) writes:
>	I wish to put an esc (ascii 033) sequence in my 
>text of an nroff document to turn on the color of the printer.

You might try defining a special character or two in your nroff tab
file.  We've used this successfully with our LaserJet to turn on and
off underlining; we use:

	US 0 \033&dD
	UE 0 \033&d@

to start and stop underlining, so that we can have regular, bold, and
true italic; with any of the three underlined as well as normal.

============================================================
Pat Sullivan - {akgua|ihnp4}!sortac!pls - voice 404-257-7382