Article View: comp.os.msdos.misc
Article #2796Re: ANSI ESC sequence, how??
From: Mario Konijnenburg
Date: Thu, 24 Dec 1992 08:11
Date: Thu, 24 Dec 1992 08:11
53 lines
2577 bytes
2577 bytes
In article <1992Dec23.195236.28511@netcom.com>, 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 trying
> to do this at the command prompt.
>
> Take for instance changing the screen background to blue. The manual shows:
>
> ESC[44m
>
> What keys do I actually hit to get the ESC (or is it ESC[ ?) part of the line.
> If I hit the Esc key, I get a \ followed by a cr/lf, so that the 44m comes on
> the next line. I hit return, and DOS says command not recognized.
>
> I believe I've tried all permutations ctrl,alt,shift,-Esc with no joy.
>
> Any help would be appreciated!
>
> Thanx!
>
> Have a HAPPY HOLIDAY!!
>
> --
>
> - mjb -
>
> mjb@netcom.com
>
You can't use the ANSI-codes directly at the command-prompt.
To change the screen background line use the 'prompt' command.
When you type at your command-prompt:
prompt $e[44m $p$g
the screen background line will change to blue.
$e is ASCII code 27 (=escape character).
$p shows the working directory of the default drive
$g shows the ASCII character '>'
See your dos-manual for more codes of the 'prompt'-command
greetings, Mario Konijnenburg
--
==============================================================================
| Mario Konijnenburg phone(work): (0)15 786177 |
| Delft University of Technology fax: (0)15 784898 |
| Faculty of Electrical Engineering email: mario@duteca.et.tudelft.nl |
| Section of Computer Architecture and Digital Technique (Test Group) |
| P.O. Box 3051 2600 GA Delft The Netherlands |
==============================================================================
Technical Details
Message-ID:
<1992Dec24.081140.1267@donau.et.tudelft.nl>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!dutrun!donau!leonardo.et.tudelft.nl!marioReferences:
<1992Dec23.195236.28511@netcom.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.misc Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!dutrun!donau!leonardo.et.tudelft.nl!mario From: mario@leonardo.et.tudelft.nl (Mario Konijnenburg) Subject: Re: ANSI ESC sequence, how?? Message-ID: <1992Dec24.081140.1267@donau.et.tudelft.nl> Sender: news@donau.et.tudelft.nl (UseNet News System) Nntp-Posting-Host: leonardo.et.tudelft.nl Organization: Delft University of Technology, Dept. of Electrical Engineering References: <1992Dec23.195236.28511@netcom.com> Date: Thu, 24 Dec 1992 08:11:40 GMT Lines: 53