lee@minnow.UUCP (Gene Lee ) (05/25/87)
The setcolor function is able to the forground and background color of the display. I wish to do the same thing from a program. Is there an escape sequence I can send? Any Ideas? Thanks in advance, Gene Lee -- Gene Lee UUCP: ...ihnp4!{meccts,dayton,rosevax}!ems!minnow!lee UNISYS Corporation ATT: (612) 635-6334 If not for the courage of the fearless crew, the minnow would be lost.
rab@rabtrs (Rich Bilancia) (05/29/87)
> > The setcolor function is able to the forground and background color of the > display. I wish to do the same thing from a program. Is there an escape > sequence I can send? Any Ideas? > Thanks in advance, > Gene Lee > > -- > Gene Lee UUCP: ...ihnp4!{meccts,dayton,rosevax}!ems!minnow!lee > UNISYS Corporation ATT: (612) 635-6334 > If not for the courage of the fearless crew, the minnow would be lost. Run: setcolor color color > file then examine the contents of the file w/ 'hd', 'od', 'vi', etc. Rich --- "Adversity is the crucible from which greatness is forged." - Ken Baker ____ ____ ___ / _ \ / _ \ / _ \ Richard A. Bilancia / / \_/ / / \_/ _ \ \\/ Computer Guidance & Support / / / / _ | | \ \ P. O. Box 620127 \ \ _ \ \ | \ | + | \ \ Littleton, Colorado 80162 \ \_/ \ \ \_| \ |_| /\_| \ voice: (303) 973-4035 \____/ \____/ \____/ ihnp4!sys1!bilanc!rab Multi-User Accounting Solutions attmail!bilanc!rab
caf@omen.UUCP (Chuck Forsberg WA7KGX) (05/31/87)
In article <908@minnow.UUCP> lee@A60.UUCP (Gene Lee ) writes:
:
: The setcolor function is able to the forground and background color of the
:display. I wish to do the same thing from a program. Is there an escape
:sequence I can send? Any Ideas?
To set the border color, use
ESC [ nn A
where nn is a small decimal number.
Professional-YAM also recognizes this code,
which (as far as I know) is unique to Xenix.
The other colors are set by SGR sequences similar to DOS's ANSI.SYS
(as well as Pro-YAM):
ESC [ nn m
where numbers in the 30's and 40's select colors.
Chuck Forsberg WA7KGX Author of Pro-YAM communications Tools for PCDOS and Unix
...!tektronix!reed!omen!caf Omen Technology Inc "The High Reliability Software"
17505-V Northwest Sauvie Island Road Portland OR 97231 Voice: 503-621-3406
TeleGodzilla BBS: 621-3746 2400/1200 CIS:70007,2304 Genie:CAF Source:TCE022
omen Any ACU 1200 1-503-621-3746 se:--se: link ord: Giznoid in:--in: uucp
omen!/usr/spool/uucppublic/FILES lists all uucp-able files, updated hourly