This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: 256 colors for bash/rxvt-2.7.10-4 ?


* Mikka (2004-03-06 14:04 +0100)
> 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@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@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@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?

Maybe. But how is bash supposed to know what you defined in .Xdefaults
for rxvt? These are only rxvt settings.
 
> 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?

man dircolors
man d

Thorsten


--
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/


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