<<< Date Index >>>     <<< Thread Index >>>

Re: [Mutt] #2884: 256 color support



Hi,

On Tue, Apr 24, 2007 at 12:13:11 -0600, Kyle Wheeler wrote:

>  The easiest way to do this is like so:

Only "something like this", I would guess:

>     source $HOME/.muttrc-color-`infocmp | grep colors# | sed 
>  's/.*#\([0-9]\+\).*/\1'`

PROMPT> infocmp | grep colors# | sed 's/.*#\([0-9]\+\).*/\1'
sed: -e expression #1, char 21: unterminated `s' command
PROMPT> infocmp | grep colors# | sed 's/.*#\([0-9]\+\).*/\1/'
64

Which in turn is wrong, because:
PROMPT> infocmp | grep colors#
        colors#8, cols#80, it#8, lines#24, pairs#64, 

it should have returned "8".
You sed expression is too greedy.

So make it:
-> source $HOME/.muttrc-color-`infocmp | grep 'colors#' | \
   sed 's/.*colors#\([0-9]\+\).*/\1/'
:-)


-----

On another note: Who said VTE/gnome-terminal has 256 colors?
See above, mine ($TERM=xterm) has 8. :-/ You may need to change some
options though...

PROMPT> gnome-terminal --version
Gnome gnome-terminal 2.16.0
PROMPT> rpm -qR gnome-terminal  | grep -i vte
libvte.so.9  
vte >= 0.12.0-2
PROMPT> rpm -q vte
vte-0.14.2-1.fc6
(Fedora Core 6)

Just to get things straight,
Moritz :-)