home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!noc.near.net!gateway!miki!oj
- From: oj@miki.pictel.com (Oliver Jones)
- Subject: Re: Ansi Xterm
- Message-ID: <1992Dec23.143614.666@miki.pictel.com>
- Organization: PictureTel Corporation
- References: <1992Dec18.093236@roper.mc.ti.com> <tsr7qt0@zola.esd.sgi.com> <1992Dec23.031500.14604@thunder.mcrcim.mcgill.edu>
- Date: Wed, 23 Dec 1992 14:36:14 GMT
- Lines: 53
-
- In article <1992Dec23.031500.14604@thunder.mcrcim.mcgill.edu> mouse@thunder.mcrcim.mcgill.edu (der Mouse) writes:
-
- >Everybody keeps talking about "ANSI color"....
- > ... is everyone just saying "ANSI" when they really mean "ISO 6429"?
-
- Yes. In Chapter 11 my MS-DOS 5.0 reference manual says, and I quote:
-
- An ANSI _escape_sequence_ is a command you send to your console device
- (monitor or keyboard). This command is called an escape sequence
- because it begins with the escape character (ESC) and is not
- considered part of the typical output. It was developed by the
- American National Standards Institute.
-
- (Quiz question--where are the appropriate places to put the [sic]
- notation in that quotation? I count at least four. :-)
-
- An appendix of the same fine manual specifies the escape sequences. A
- footnote points out that the color-setting sequences are ISO 6429. I
- suspect that the REAL "standard"--from which people should implement--
- is (groan) the DOS manual's appendix on "ANSI.SYS."
-
- Here are the sequences which set color. Again, I'm quoting verbatim:
-
- ESC[<param>;<param>;...<param>m
-
- Set Graphics Mode. Calls the graphics functions specified by the
- following values. These specified functions remain active
- until the next occurrence of this escape sequence.
-
- Text Attributes
-
- 0 all attributes off
- 1 Bold on
- 4 Underscore (on monochrome display adapter only)
- 5 Blink on
- 7 Reverse video on
- 8 Concealed on
-
- Foreground colors
- 30 Black 34 Blue
- 31 Red 35 Magenta
- 32 Green 36 Cyan
- 33 Yellow 37 White
-
- Background colors
- 40 Black 44 Blue
- 41 Red 45 Magenta
- 42 Green 46 Cyan
- 43 Yellow 47 White
-
- Parameters 30 through 47 meet the ISO 6429 standard
-
- Ollie Jones
-