home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / c / 12666 < prev    next >
Encoding:
Text File  |  1992-08-22  |  1.5 KB  |  44 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!uunet.ca!canrem!telly!druid!darcy
  3. From: darcy@druid.uucp (D'Arcy J.M. Cain)
  4. Subject: Re: Using ANSI.SYS codes from C?  (Turbo)
  5. Message-ID: <1992Aug22.225333.11298@druid.uucp>
  6. Date: Sat, 22 Aug 1992 22:53:33 GMT
  7. References: <1992Aug18.013912.12547@cs.umb.edu> <1992Aug18.111356@shovel.Prime.COM> <1992Aug19.135137.1507@tac.fi>
  8. Organization: D'Arcy Cain Consulting
  9. Lines: 33
  10.  
  11. tiok_ks@tac.fi writes:
  12. >In article <1992Aug18.111356@shovel.Prime.COM>
  13. >tim@shovel.Prime.COM (Tim Cantin) writes:
  14. >>                         it's the same as the resistor
  15. >>                         code table if you know that! :)~
  16. >>     If anyone knows those color codes, feel free to post them! *grin*
  17. >I don't think it's the same... Resistors have 10 different colours,
  18. >order of which I'm not sure of, but according to the Programmer's PC
  19. >Sourcebook there are only 8 ANSI colours:
  20. >
  21. >text    bkgr.    colour
  22. >----    -----    ------
  23. >30    40    black
  24. >31    41    red
  25. >32    42    green
  26. >33    43    yellow
  27. >34    44    blue
  28. >35    45    magenta
  29. >36    46    cyan
  30. >37    47    white
  31.  
  32. And this isn't even the same order as resistor codes which can be remembered
  33. by "Bad Boys Rape Our Young Girls But Violet Gives Willingly."  This maps to
  34. Black, Brown, Red, Orange, Yellow, Green, Blue, Violet, Grey and White.
  35.  
  36. And to the guy who accused me of being politically correct a while back
  37. in email what do you think now?  :-)
  38.  
  39. -- 
  40. D'Arcy J.M. Cain (darcy@druid.com)  |
  41. D'Arcy Cain Consulting              |   There's no government
  42. Toronto, Ontario, Canada            |   like no government!
  43. +1 416 424 2871          DoD#0082   |
  44.