Mail Archives: opendos/2003/12/03/06:49:16
On 3 Dec 2003 at 19:05, DONALD PEDDER wrote:
> Okay, I finally found the code for green foreground in the help for
> ANSI.SYS, but now what? I put ANSI.SYS in my config and re-booted (however
> I don't see it when I do a "mem /a", unless it's under "CON" or "DOS").
It should be a line along the lines of:
Device=\DRDOS7.03\ANSI.SYS
You have to give the correct path to the file.
> I
> created a file with the escape sequence in it, but when I do a "type" on
> it, my text is still white.
> DOSbook isn't very precise on how to use ANSI.SYS - it says to put it
> in the config, which I did, it says to edit a file with the escape
> sequence and then do a "type" on it, which I did, and that's all it says,
> yet I still have white text. Does this file need to be passed to ANSI.SYS
> in the config or something? Confused.
*How* are you "typing* the file?
Also, are you certain that the editor you are using
actually put in an escape character.
Try this instead. Change your prompt.
Assuming that it is currently the standard $p$g, try
this:
prompt $e[0;31;1m$p$g
(note that is *zero* after the square bracket, and
*one* before the m)
Enter that on the command line. The prompt should
then be red letters on a black background.
If it isn't, either you mistyped it, or ANSI isn't
properly installed.
--
Leonard Erickson (aka shadow)
shadow at krypton dot rain dot com
- Raw text -