home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / msdos / misc / 6704 < prev    next >
Encoding:
Text File  |  1992-12-24  |  2.5 KB  |  66 lines

  1. Newsgroups: comp.os.msdos.misc
  2. Path: sparky!uunet!mcsun!sun4nl!dutrun!donau!leonardo.et.tudelft.nl!mario
  3. From: mario@leonardo.et.tudelft.nl (Mario Konijnenburg)
  4. Subject: Re: ANSI ESC sequence, how??
  5. Message-ID: <1992Dec24.081140.1267@donau.et.tudelft.nl>
  6. Sender: news@donau.et.tudelft.nl (UseNet News System)
  7. Nntp-Posting-Host: leonardo.et.tudelft.nl
  8. Organization: Delft University of Technology, Dept. of Electrical Engineering
  9. References:  <1992Dec23.195236.28511@netcom.com>
  10. Date: Thu, 24 Dec 1992 08:11:40 GMT
  11. Lines: 53
  12.  
  13. In article <1992Dec23.195236.28511@netcom.com>, mjb@netcom.com (Martin Brown) writes:
  14. > I have ansi.sys installed, and have received some ansi msg's that seem to be
  15. > working.  Now that I want to do some ansi coding, I can't figure out how to
  16. > actually enter (which keys to push) the 'esc' part of the sequence.  I'm trying
  17. > to do this at the command prompt.
  18. > Take for instance changing the screen background to blue.  The manual shows:
  19. >      ESC[44m
  20. > What keys do I actually hit to get the ESC (or is it ESC[ ?) part of the line.
  21. > If I hit the Esc key, I get a  \ followed by a cr/lf, so that the 44m comes on
  22. > the next line.  I hit return, and DOS says command not recognized.
  23. > I believe I've tried all permutations ctrl,alt,shift,-Esc with no joy.
  24. > Any help would be appreciated!
  25. > Thanx!
  26. > Have a HAPPY HOLIDAY!!
  27. >  
  28. > -- 
  29. >                                    - mjb -
  30. >                                 mjb@netcom.com
  31.  
  32. You can't use the ANSI-codes directly at the command-prompt.
  33. To change the screen background line use the 'prompt' command.
  34. When you type at your command-prompt: 
  35.  
  36.     prompt  $e[44m $p$g
  37.                 
  38. the screen background line will change to blue.
  39.  
  40. $e is ASCII code 27 (=escape character).
  41. $p shows the working directory of the default drive
  42. $g shows the ASCII character '>'
  43.  
  44. See your dos-manual for more codes of the 'prompt'-command
  45.  
  46. greetings, Mario Konijnenburg
  47.  
  48. -- 
  49. ==============================================================================
  50. | Mario Konijnenburg                       phone(work): (0)15 786177         |
  51. | Delft University of Technology           fax:         (0)15 784898         |
  52. | Faculty of Electrical Engineering        email: mario@duteca.et.tudelft.nl |
  53. | Section of Computer Architecture and Digital Technique (Test Group)        |
  54. | P.O. Box 3051        2600 GA Delft          The Netherlands                |
  55. ==============================================================================
  56.