Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!mit-eddie!uw-beaver!tektronix!reed!omen!caf From: caf@omen.UUCP (Chuck Forsberg WA7KGX) Newsgroups: comp.unix.xenix Subject: Re: setcolor function Message-ID: <553@omen.UUCP> Date: Sat, 30-May-87 19:01:21 EDT Article-I.D.: omen.553 Posted: Sat May 30 19:01:21 1987 Date-Received: Tue, 2-Jun-87 00:47:58 EDT References: <908@minnow.UUCP> Reply-To: caf@omen.UUCP (Chuck Forsberg WA7KGX) Organization: Omen Technology Inc, Portland Oregon Lines: 23 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