Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authenticated: #624634 Date: Sat, 6 Mar 2004 14:04:09 +0100 From: Mikka Reply-To: Mikka Message-ID: <649659476.20040306140409@gmx.de> To: cygwin AT cygwin DOT com Subject: Re: 256 colors for bash/rxvt-2.7.10-4 ? X-Internet-Time: @543 X-Uptime: 0 days, 2 hours, 50 minutes MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Olaf, You wrote: > Set the following values in .Xdefaults. > [...] > > Now we have defined 16 Colours out of 256. These 16 colours can now be > used in rxvt refering to them by name(colorX) or number. Okay, building Rxvt*color references in .Xdefaults works fine. However, I can't find any hint in a documentation or (web) tutorial how to point to these values within a prompt definition. Let's say, I've got the following prompt: PS1='\[\033]0;\l \w\007\# \u@\h\w> ' That reads: 1 mikka AT machine~> _ with the current console's name added to the console title (tty0 ~). Including the colouring information, my prompt reads PS1='\[\033]0;\l \w\007\# \[\e[37;1m\]\u@\h\[\e[32;1m\]\w>\[\e[0m\] ' The line above colours the "mikka AT machine" section bright (i.e. "bold") white, and the path section ("~>") green. The rest (both line numbering and entered text) is standard ("white", or rather some sort of "gray"). Not too special, though. I want the path section to be "GreenYellow" (#ADFF2F), and the "mikka AT machine" part being rendered "OrangeRed" (#FF4500). In my .Xdefaults I set: Rxvt*background: #111111 Rxvt*backspacekey: ^H Rxvt*boldFont: Andale Mono-14 Rxvt*color0: #111111 Rxvt*color1: GreenYellow Rxvt*color2: LightGray Rxvt*color3: OrangeRed Rxvt*color4: White ... Rxvt*cursorColor: GreenYellow The values "GreenYellow" and "OrangeRed" are definitely accepted by rxvt, so I assume these settings are valid. $TERM is set to "rxvt" (also tried it with "cygwin") - dunno whether that matters - but how to refer correctly to the .Xdefaults colour values? $color(0), ... $color(15) ? $color0, ... $color15 ? $Rxvt*color0, ... $Rxvt*color15 ? Who knows, maybe bash 2.05b.0(1) lacks extended colour prompt support after all? The second thing, I intend to change is the behaviour of the ls output. I've alias'd ls to something like: alias ls='ls --color=auto --show-control-chars' The --color thing provides a cyan, blue and green output that is not too pleasant to read. It should be able somehow to change these default colours as well, but how? Let's hope a prompt/shell guru will read and answer this. :) Greetings, Mikka -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/