public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Screen color question
@ 2002-03-06 12:45 Barry Goldstein
  2002-03-06 13:10 ` Larry Hall (RFK Partners, Inc)
  2002-03-06 13:12 ` Randall R Schulz
  0 siblings, 2 replies; 7+ messages in thread
From: Barry Goldstein @ 2002-03-06 12:45 UTC (permalink / raw)
  To: cygwin

I installed cygwin and have been using it pretty much as it came "out of
the box" (on an NT4 box).

As installed (with the bash shell), it displays light green on black
background and I'm going blind. I searched the faq, etc., and found all
sorts of stuff about setting colors in vim or emacs, but nothing about
setting the colors in the vanilla shell.

Thanks.

BG

==
Barry Goldstein              Pequod Software
124 Otis Street              bag@shore.net
Newtonville, MA 02460-1846   +1-617-332-5758 (home)
U.S.A.                       +1-509-756-7445 (fax)

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Screen color question
  2002-03-06 12:45 Screen color question Barry Goldstein
@ 2002-03-06 13:10 ` Larry Hall (RFK Partners, Inc)
  2002-03-06 13:56   ` Barry Goldstein
  2002-03-06 13:12 ` Randall R Schulz
  1 sibling, 1 reply; 7+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2002-03-06 13:10 UTC (permalink / raw)
  To: Barry Goldstein, cygwin

At 03:39 PM 3/6/2002, Barry Goldstein wrote:
>I installed cygwin and have been using it pretty much as it came "out of
>the box" (on an NT4 box).
>
>As installed (with the bash shell), it displays light green on black
>background and I'm going blind. I searched the faq, etc., and found all
>sorts of stuff about setting colors in vim or emacs, but nothing about
>setting the colors in the vanilla shell.


You set colors for the console window the same way as you would for a 
DOS prompt (since the shell is just starting in a DOS prompt box).  Change 
the colors in the properties menu.  If you want to set colors instead within 
the shell instead, check out the bash documentation (man page, etc) for that 
information.

  

Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Screen color question
  2002-03-06 12:45 Screen color question Barry Goldstein
  2002-03-06 13:10 ` Larry Hall (RFK Partners, Inc)
@ 2002-03-06 13:12 ` Randall R Schulz
  1 sibling, 0 replies; 7+ messages in thread
From: Randall R Schulz @ 2002-03-06 13:12 UTC (permalink / raw)
  To: Barry Goldstein, cygwin

Barry,

If you're using the Windows console, open the properties dialog, either of 
the shortcut you use to start your Cygwin shell or of an existing window 
(use the window menu) and view the "Colors" pane. There you can control the 
foreground (text) and background colors for plain text (i.e., when an 
application does not itself issue color-changing escape sequences).

For RXVT you need to alter the command that starts up the emulator (again, 
presumably in a shortcut). The "-fg" and "-bg" options set the foreground 
and background colors, resp. "Man rxvt" for more details.

Randall Schulz
Mountain View, CA USA


At 12:39 2002-03-06, Barry Goldstein wrote:
>I installed cygwin and have been using it pretty much as it came "out of 
>the box" (on an NT4 box).
>
>As installed (with the bash shell), it displays light green on black 
>background and I'm going blind. I searched the faq, etc., and found all 
>sorts of stuff about setting colors in vim or emacs, but nothing about 
>setting the colors in the vanilla shell.
>
>Thanks.
>
>BG


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Screen color question
  2002-03-06 13:10 ` Larry Hall (RFK Partners, Inc)
@ 2002-03-06 13:56   ` Barry Goldstein
  2002-03-06 14:20     ` Randall R Schulz
  2002-07-11 18:25     ` Dennis W. Bulgrien
  0 siblings, 2 replies; 7+ messages in thread
From: Barry Goldstein @ 2002-03-06 13:56 UTC (permalink / raw)
  To: Larry Hall (RFK Partners, Inc), Randall R Schulz, cygwin

I should have thought of that, but having done it, it doesn't stick -- the
next prompt restores the dim light-green-on-black.

So I think it's my prompt that is 'insisting' on the dimness. 

The prompt strings are
PS1=$'\\[\\033]0;\\w\\007\n\\033[32m\\]\\u@\\h \\[\\033[33m\\w\\033[0m\\]\n$ '
PS2='> '
PS4='+ '

I'm not sure where to re-set these or what they should be -- I'll go and
read the man bash pages. All I want is the current directory followed by
the usual '>'.

BG

===================

At 03:50 PM 3/6/2002 -0500, Larry Hall (RFK Partners, Inc) wrote:
>At 03:39 PM 3/6/2002, Barry Goldstein wrote:
>>I installed cygwin and have been using it pretty much as it came "out of
>>the box" (on an NT4 box).
>>
>>As installed (with the bash shell), it displays light green on black
>>background and I'm going blind. I searched the faq, etc., and found all
>>sorts of stuff about setting colors in vim or emacs, but nothing about
>>setting the colors in the vanilla shell.
>
>
>You set colors for the console window the same way as you would for a 
>DOS prompt (since the shell is just starting in a DOS prompt box).  Change 
>the colors in the properties menu.  If you want to set colors instead 
>within the shell instead, check out the bash documentation (man page, etc) 
>for that information.

==
Barry Goldstein              Pequod Software
124 Otis Street              bag@shore.net
Newtonville, MA 02460-1846   +1-617-332-5758 (home)
U.S.A.                       +1-509-756-7445 (fax)

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Screen color question
  2002-03-06 13:56   ` Barry Goldstein
@ 2002-03-06 14:20     ` Randall R Schulz
  2002-07-11 18:25     ` Dennis W. Bulgrien
  1 sibling, 0 replies; 7+ messages in thread
From: Randall R Schulz @ 2002-03-06 14:20 UTC (permalink / raw)
  To: Barry Goldstein, Larry Hall (RFK Partners, Inc), cygwin

Barry,

When you confirmed the dialog, it asked you whether to apply the change 
only to the current window or to all subsequent uses of the same shortcut 
that created that window. If you did not start the shell via a shortcut, 
then the second alternative is based on subsequent windows with the same 
initial title as the current one (or as its initial title--I don't know 
which). The default is "current window only," so you have to click the 
other radio button to make the change persistend.

Of course, if you change the shortcut directly, it will be applied to all 
windows subsequently opened via that shortcut.


Use this PS1:

         PS1='\w> '

or

         PS1='\W> '

You might like my PS1. It puts the current directory name (both short and 
long form) in the window's title bar and just the history number in the prompt:

         PS1=$'\[\e]0; \u :: \W (\w)\a\]\!> '

This works in most modern terminal emulators, including the Cygwin console 
and RXVT.

Not that I want to dissuade you from reading the manual...


Randy


At 13:49 2002-03-06, Barry Goldstein wrote:
>I should have thought of that, but having done it, it doesn't stick -- the
>next prompt restores the dim light-green-on-black.
>
>So I think it's my prompt that is 'insisting' on the dimness.
>
>The prompt strings are
>PS1=$'\\[\\033]0;\\w\\007\n\\033[32m\\]\\u@\\h \\[\\033[33m\\w\\033[0m\\]\n$ '
>PS2='> '
>PS4='+ '
>
>I'm not sure where to re-set these or what they should be -- I'll go and
>read the man bash pages. All I want is the current directory followed by
>the usual '>'.
>
>BG
>
>===================
>
>At 03:50 PM 3/6/2002 -0500, Larry Hall (RFK Partners, Inc) wrote:
> >At 03:39 PM 3/6/2002, Barry Goldstein wrote:
> >>I installed cygwin and have been using it pretty much as it came "out of
> >>the box" (on an NT4 box).
> >>
> >>As installed (with the bash shell), it displays light green on black
> >>background and I'm going blind. I searched the faq, etc., and found all
> >>sorts of stuff about setting colors in vim or emacs, but nothing about
> >>setting the colors in the vanilla shell.
> >
> >
> >You set colors for the console window the same way as you would for a
> >DOS prompt (since the shell is just starting in a DOS prompt box).  Change
> >the colors in the properties menu.  If you want to set colors instead
> >within the shell instead, check out the bash documentation (man page, etc)
> >for that information.
>
>==
>Barry Goldstein              Pequod Software
>124 Otis Street              bag@shore.net
>Newtonville, MA 02460-1846   +1-617-332-5758 (home)
>U.S.A.                       +1-509-756-7445 (fax)


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Screen color question
  2002-03-06 13:56   ` Barry Goldstein
  2002-03-06 14:20     ` Randall R Schulz
@ 2002-07-11 18:25     ` Dennis W. Bulgrien
  1 sibling, 0 replies; 7+ messages in thread
From: Dennis W. Bulgrien @ 2002-07-11 18:25 UTC (permalink / raw)
  To: cygwin

The others were thinking we had problems with the default text color, like
the output of export for example.  Its the prompt which defaults to
dark-green and dark-yellow on black.  To brighten it up you can specify the
bold attribute to PS1.  The 32m is dark green; replace [32m\] with [1;32m\].
This causes the prompt to be light-green and light-yellow on black.  I can
supply the color defs if you are interested in changing it further.

"Barry Goldstein" <bag@shore.net> wrote in message
news:3.0.5.32.20020306164913.00986020@pop.shore.net...

> The prompt strings are
> PS1=$'\\[\\033]0;\\w\\007\n\\033[32m\\]\\u@\\h
\\[\\033[33m\\w\\033[0m\\]\n$ '





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Screen color question
@ 2002-03-06 14:44 Randall R Schulz
  0 siblings, 0 replies; 7+ messages in thread
From: Randall R Schulz @ 2002-03-06 14:44 UTC (permalink / raw)
  To: Barry Goldstein, cygwin

Barry,

I think I misunderstood you last time. There are indeed color-changing 
sequences in the prompt you've got (it originates in /etc/profile, by the 
way). But when I use that prompt, the color change is restricted to the 
prompt itself.

Randall Schulz
Mountain View, CA USA


At 13:49 2002-03-06, Barry Goldstein wrote:
>I should have thought of that, but having done it, it doesn't stick -- the 
>next prompt restores the dim light-green-on-black.
>
>So I think it's my prompt that is 'insisting' on the dimness.
>
>The prompt strings are
>PS1=$'\\[\\033]0;\\w\\007\n\\033[32m\\]\\u@\\h \\[\\033[33m\\w\\033[0m\\]\n$ '
>PS2='> '
>PS4='+ '
>
>I'm not sure where to re-set these or what they should be -- I'll go and 
>read the man bash pages. All I want is the current directory followed by 
>the usual'>'.
>
>BG


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-07-11 22:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-06 12:45 Screen color question Barry Goldstein
2002-03-06 13:10 ` Larry Hall (RFK Partners, Inc)
2002-03-06 13:56   ` Barry Goldstein
2002-03-06 14:20     ` Randall R Schulz
2002-07-11 18:25     ` Dennis W. Bulgrien
2002-03-06 13:12 ` Randall R Schulz
2002-03-06 14:44 Randall R Schulz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).