Since this might be of interest to others on the list we'll keep it there.

I'm running W2k on the cygwin machine so my config wont help you. On win9x you can't, 
as far as I know, change colors on the fly, you have to change the console colors from 
within the autoexec.bat file if you want them to stick. This assumes you have ansi.sys 
started as a device in config.sys. Of course you can put the prompt string into the 
cygwin.bat file but you still have to load ansi.sys as a device in config.sys at boot 
time, (Now, I have to say that I have not tested this since I'm not running cygwin on 
w9x but it should work).

If you have a copy of old plain dos you will find an helpfile for ansi.sys which 
describes how to change the colors, unfortunaely I only have a localized version and 
not time enough to translate the text.

Here's  how to change to black bg and green fg with bold text.

    prompt $e[1;32;40m$p$g

I'm using reversed video on my w98 machine so my prompt string is:
Prompt=$p$g$e[7m

Hope this will help anyone,

///David


-----Original Message-----
From: Duke Normandin [mailto:[EMAIL PROTECTED]]
Sent: den 18 maj 2001 03:52
To: David Larsson (ERA)
Subject: Re: changing terminal colours



On Thu, May 17, 2001 at 04:45:23PM +0200, David Larsson (ERA) wrote:

> I had problems changing terminal colors if I changed them from the
> already opened cygwin terminal window. As soon as I started typing the
> old colors appeared on the new text. I solved the problem by changing
> the colors on the shortcut that starts cygwin so now it works fine for
> me, in vim too.
> 
> Hope this will help.
> 
> ///David

Would you mind sending me an example of how you did this in the
"shortcut" you mentioned above. Do you mean the 'cygwin.bat' file? I'm
having trouble setting up my win95 console to display with a blue
background with white text. I'm almost there, but when I exit a program
-like joe or vim -- I have to keep on doing 'clearn' to get the screen
color back. I'm thinking that your 'trick' may be what I need. TIA...
-- 
-duke
Calgary, Alberta, Canada

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

Reply via email to