home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / fj / maillis / xwindow / 18888 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  2.5 KB

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