This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: changing terminal colours



On Fri, May 18, 2001 at 11:10:05AM +0200, David Larsson (ERA) wrote:

> 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

No help for me -- but thanks anyway. I knew as much and a bit more. Of
course on Cygwin I set the prompt with $PS1. Maybe setting the console
BG color in cygwin.bat might solve my problem. Thanks again.
-- 
-duke
Calgary, Alberta, Canada


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]