home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / msdos / misc / 6713 < prev    next >
Encoding:
Internet Message Format  |  1992-12-25  |  2.0 KB

  1. Path: sparky!uunet!spool.mu.edu!agate!dog.ee.lbl.gov!news!nosc!ryptyde!mshapiro
  2. Newsgroups: comp.os.msdos.misc
  3. Subject: Re: ANSI ESC sequence, how??
  4. From: mshapiro@netlink.cts.com (Michael Shapiro)
  5. Message-ID: <i3BDwB1w165w@netlink.cts.com>
  6. References: <1992Dec23.195236.28511@netcom.com>
  7. Date: Fri, 25 Dec 92 18:43:05 PST
  8. Organization: NetLink Online Communications, San Diego CA
  9. Lines: 46
  10.  
  11. mjb@netcom.com (Martin Brown) writes:
  12.  
  13. > I have ansi.sys installed, and have received some ansi msg's that seem to be
  14. > working.  Now that I want to do some ansi coding, I can't figure out how to
  15. > actually enter (which keys to push) the 'esc' part of the sequence.  I'm tryi
  16. > to do this at the command prompt.
  17. > Take for instance changing the screen background to blue.  The manual shows:
  18. >      ESC[44m
  19.  
  20. He then asks how you can send an ANSI ESC sequence to the screen.
  21. Actually, it's kind of hard with the standard commands, but you can
  22. add an ESC.COM utility program which works like ECHO but precedes
  23. the message with an ESC code.  To create the utility program, capture
  24. the text shown below to some file, say ESC.SCR.  Then edit the file
  25. to remove all the lines except those between the equals sign (=) lines.
  26. Then run the command DEBUG, using ESC.SCR as input, with the command:
  27.      c> DEBUG <ESC.SCR
  28. This should produce the file ESC.COM which you can use to send ESC 
  29. sequences.  For example, to change the command shown above, type:
  30.      C>ESC [44m
  31. The script file to create ESC.COM is:
  32. =======================================================================
  33. n esc.com
  34. a
  35. mov bx,0080
  36. add bl,[bx]
  37. mov byte ptr [bx+1],24
  38. mov byte ptr [0081],1b
  39. mov dx,0081
  40. mov ah,09
  41. int 21
  42. int 20
  43.              {Blank line; delete this text.}
  44. rcx
  45. 0017
  46. w
  47. q
  48. =======================================================================
  49.  
  50. --                    
  51. INTERNET:  mshapiro@netlink.cts.com (Michael Shapiro)
  52. UUCP:   ...!ryptyde!netlink!mshapiro
  53. NetLink Online Communications * Public Access in San Diego, CA (619) 453-1115
  54.