delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/06/10:07:27

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
From: Thorsten Kampe <thorsten AT thorstenkampe DOT de>
Subject: Re: 256 colors for bash/rxvt-2.7.10-4 ?
Date: Sat, 6 Mar 2004 16:06:46 +0100
Lines: 73
Message-ID: <1spah3i29x2yk$.dlg@thorstenkampe.de>
References: <649659476 DOT 20040306140409 AT gmx DOT de>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: isi-dialin-129-162.isionline-dialin.de
User-Agent: 40tude_Dialog/2.0.10.1de

* 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 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?

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019