home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / 20529 < prev    next >
Encoding:
Text File  |  1992-12-23  |  2.2 KB  |  64 lines

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