home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / c / 12518 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  1.2 KB

  1. Path: sparky!uunet!ferkel.ucsb.edu!taco!lll-winken!decwrl!deccrl!bloom-beacon!eru.mt.luth.se!lunic!sunic!news.funet.fi!tac.fi!tiok_ks
  2. From: tiok_ks@tac.fi
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Using ANSI.SYS codes from C?  (Turbo)
  5. Message-ID: <1992Aug19.135137.1507@tac.fi>
  6. Date: 19 Aug 92 10:51:37 GMT
  7. References: <1992Aug18.013912.12547@cs.umb.edu> <1992Aug18.111356@shovel.Prime.COM>
  8. Followup-To: comp.lang.c
  9. Organization: City of Tampere
  10. Lines: 29
  11.  
  12. In article <1992Aug18.111356@shovel.Prime.COM>
  13. tim@shovel.Prime.COM (Tim Cantin) writes:
  14. > esc[xm        set color x where colors are:
  15. >         foreground:    background:
  16. >         30 black    40 black
  17. >         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^___darn, I can't remember them!
  18. >                         it's the same as the resistor
  19. >                         code table if you know that! :)~
  20.  
  21. > p.s.
  22. >     If anyone knows those color codes, feel free to post them! *grin*
  23.  
  24. I don't think it's the same... Resistors have 10 different colours,
  25. order of which I'm not sure of, but according to the Programmer's PC
  26. Sourcebook there are only 8 ANSI colours:
  27.  
  28. text    bkgr.    colour
  29. ----    -----    ------
  30. 30    40    black
  31. 31    41    red
  32. 32    42    green
  33. 33    43    yellow
  34. 34    44    blue
  35. 35    45    magenta
  36. 36    46    cyan
  37. 37    47    white
  38.  
  39. --------------------------------
  40. Kimmo Surakka     tiok_ks@tac.fi
  41.