Article View: comp.os.msdos.misc
Article #2802Re: ANSI ESC sequence, how??
From: Michael Shapiro
Date: Sat, 26 Dec 1992 02:43
Date: Sat, 26 Dec 1992 02:43
46 lines
2068 bytes
2068 bytes
mjb@netcom.com (Martin Brown) writes:
> I have ansi.sys installed, and have received some ansi msg's that seem to be
> working. Now that I want to do some ansi coding, I can't figure out how to
> actually enter (which keys to push) the 'esc' part of the sequence. I'm tryi
> to do this at the command prompt.
>
> Take for instance changing the screen background to blue. The manual shows:
>
> ESC[44m
>
He then asks how you can send an ANSI ESC sequence to the screen.
Actually, it's kind of hard with the standard commands, but you can
add an ESC.COM utility program which works like ECHO but precedes
the message with an ESC code. To create the utility program, capture
the text shown below to some file, say ESC.SCR. Then edit the file
to remove all the lines except those between the equals sign (=) lines.
Then run the command DEBUG, using ESC.SCR as input, with the command:
c> DEBUG <ESC.SCR
This should produce the file ESC.COM which you can use to send ESC
sequences. For example, to change the command shown above, type:
C>ESC [44m
The script file to create ESC.COM is:
=======================================================================
n esc.com
a
mov bx,0080
add bl,[bx]
mov byte ptr [bx+1],24
mov byte ptr [0081],1b
mov dx,0081
mov ah,09
int 21
int 20
{Blank line; delete this text.}
rcx
0017
w
q
=======================================================================
--
INTERNET: mshapiro@netlink.cts.com (Michael Shapiro)
UUCP: ...!ryptyde!netlink!mshapiro
NetLink Online Communications * Public Access in San Diego, CA (619) 453-1115
Technical Details
Message-ID:
<i3BDwB1w165w@netlink.cts.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!agate!dog.ee.lbl.gov!news!nosc!ryptyde!mshapiroReferences:
<1992Dec23.195236.28511@netcom.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!agate!dog.ee.lbl.gov!news!nosc!ryptyde!mshapiro Newsgroups: comp.os.msdos.misc Subject: Re: ANSI ESC sequence, how?? From: mshapiro@netlink.cts.com (Michael Shapiro) Message-ID: <i3BDwB1w165w@netlink.cts.com> References: <1992Dec23.195236.28511@netcom.com> Date: Fri, 25 Dec 92 18:43:05 PST Organization: NetLink Online Communications, San Diego CA Lines: 46