Tjanks a lot.
--
Anthony Le Mansec
ALM> Where can i find useful documentations to set up my mutt colors ?
ALM> (i can't find it on mutt's documentations...)
In mutt's doc there's a file named `manual.txt' or something like that
read it, especially the part about `color' statements in the .muttrc file.
--
Jean-Yves Burlett --- j...@altern.org
UHP Nancy 1 - LORIA
How about some examples? This is from my muttrc,
http://www.math.fu-berlin.de/~guckes/setup/#mutt
The Mutt User Page links to other sample setups, too:
http://www.math.fu-berlin.de/~guckes/mutt/user.html
Sven
--
Sven guc...@math.fu-berlin.de using mutt-0.96.3i [990603] WOOF!,,
MUTT http://www.mutt.org/ news:comp.mail.mutt (__/'.
MUTT http://www.math.fu-berlin.de/~guckes/mutt/ /| |\
MUTT MUTT - *the* mailer for UNIX with color, threading, IMAP+MIME+PGP+POP
## =============================================================
## Color definitions - See the manual.txt at
## "The Pager" and "Using color and mono video attributes"
## =============================================================
## From the manual to mutt-0.96.3:
## Objects that you can colorize:
## attachment, body, bold, error, header, hdrdefault,
## index, indicator, markers, message, normal,
## quoted, quoted1, ..., quotedN,
## search, signature, status, tilde, tree, underline.
## Color names you can use for "background" and "foreground":
## white black green magenta blue cyan yellow red default colorx
color normal white black # pager body
color attachment green black # ..
# color body green black # ..
# match ftp addresses:
# color "default" is not known any more?
# color body cyan default "ftp://[^ ]*"
color body cyan black "ftp://[^ ]*"
# match http addresses:
# color "default" is not known any more?
# match URLs:
color body cyan default "<URL:[^ ]*>"
# color bold green default # ..
color error red default # global
#
# NEW color scheme for header:
color header blue default "^cc: "
color header yellow default "^date: "
color header green default "^from "
color header red default "^from: "
color header white red "^newsgroups: "
color header red default "^reply-to: "
color header white blue "^subject: "
color header red default "^to: "
color header magenta default "^x-mailer: "
color header green default "^message-id:"
color header red default "^message-id: .*pine"
#
# color hdrdefault blue black #
color indicator white blue # index
color markers red default# index
color message white blue # index
## ==================================================
## Colorizing the body of messages (ie in the pager)
## ==================================================
# Coloring quoted text - coloring only the first four levels:
color quoted cyan default# pager body
color quoted1 red default# pager body
color quoted2 cyan default# pager body
color quoted3 yellow default# pager body
#
color signature red default# pager body
color status white blue # index status bar default: black white
color tilde blue default# pager body
color tree red default# index
color underline yellow default#
color body blue red "<[Gg]>"
color body blue red "<[Bb][Gg]>"
# Colorize smileys: :-) ;-) :-/ :-(
color body yellow black "[;:]-[)/(|]"
#
# Colorize
color body cyan default "(http|ftp|news|telnet|finger)://[^ ]*"
===
Probably waiting too for the same color support in mutt as in slrn? :-)
From .slrnrc:
color header_name "green" "default"
color headers "magenta" "default"
Robert Jan
--
Automagically generated offensive fortune:
Success has many fathers, but failure is a bastard.
> Probably waiting too for the same color support in mutt as in slrn? :-)
> From .slrnrc:
> color header_name "green" "default"
> color headers "magenta" "default"
mutt's done color -- with ncurses -- about as long as slrn's done it
(the slang code in mutt was an afterthought).
so it's not clear what you're suggesting here...
--
Thomas E. Dickey
dic...@clark.net
http://www.clark.net/pub/dickey
> > Probably waiting too for the same color support in mutt as in slrn? :-)
> > From .slrnrc:
> > color header_name "green" "default"
> > color headers "magenta" "default"
>
> mutt's done color -- with ncurses -- about as long as slrn's done it
> (the slang code in mutt was an afterthought).
>
> so it's not clear what you're suggesting here...
Nothing. I was checking if I read someone's mind correctly :-)
Start slrn in a color-xterm with the above two lines as config
to see what I mean.
Robert Jan
--
Automagically generated offensive fortune:
There are a couple of things about her I greatly admire.
--
Frederic L. W. Meunier = Niteroi, RJ - Brazil = Tel: +55-21-620-7173
Contact: fredlwm@{olympiquedemarseille.org,urbi.com.br} = IRC: _19751127
[root@marseille /tmp]# f{l,r}ames;java*;HTML_mail;SPAM > /dev/null
I found the slightly yellow background less tiring for my eyes, but I
could get a perfectly white one by using "color normal black default".
--
Kind regards,
Thomas Schultz
Both lynx and mutt support "default" colors, which is what you are looking for.
(It works with either ncurses or slang).
>> > Probably waiting too for the same color support in mutt as in slrn? :-)
>> > From .slrnrc:
>> > color header_name "green" "default"
>> > color headers "magenta" "default"
>>
>> mutt's done color -- with ncurses -- about as long as slrn's done it
>> (the slang code in mutt was an afterthought).
>>
>> so it's not clear what you're suggesting here...
> Nothing. I was checking if I read someone's mind correctly :-)
> Start slrn in a color-xterm with the above two lines as config
> to see what I mean.
I don't happen to have slrn built. If you're talking about the "default"
colors, that's been in mutt since 1997. (I didn't code it, but pointed it
out to one of the developers).
( If not that - I can't read your mind either ;-)
Glad nobody can :-)
What I meant was the ability of slrn to give the header names a different
color from the contents of the header, for example:
color header_name "green" "default"
color headers "magenta" "default"
colors your headers like this:
Subject: Re: mutt & colors - some examples
<green-> <----------magenta-------------->
If mutt's "color header" behaved the same as "color body" this would be
possible with a simple regexp. At the moment the first colors the complete
line, while the second only colors the match within the line.
Robert Jan
--
Automagically generated offensive fortune:
Grain grows best in shit
-- Ursula K. LeGuin
Hmm. And default colors is? I have the following in my ~/.muttrc:
color header yellow black Subject:
color header brightcyan black .
color body brightyellow black [_a-z\.\$A-Z0-9-]+@[a-zA-Z0-9\./\-]+
color body yellow black (http|ftp)://[_a-zA-Z0-9\./~\-]+
color quoted green black
color signature brightblue black
color attachment yellow black
color tree red black
color indicator black cyan
color status yellow blue
color tilde blue black
color normal default default
And what I get is a brightwhiteyellow background. I also tried some color
examples found in some muttrc from the Mutt site and some of them don't
worked (invisible colors etc, impossible to use). So I don't know what I
need to get this white background.
Another program needing it is Midnight Commander. If you compile it with
Slang (included Slang or from your system's Slang) you get the same
brightwhiteyellow color. Try it in Options ---> Configure options. You get
this background and "Configure options" and other things are yellow, so you
need to have good eyes to see what's in yellow.
> Hmm. And default colors is? I have the following in my ~/.muttrc:
"default" is (using appropriate libraries and terminal description) the
original foreground or background color of your terminal. I usually
run black text on white background at work, and white on black at home.
(Screen luminosity and resolution are a factor). Perhaps the colors are
assuming a black background or even different resource settings: XFree86
xterm and rxvt have different default color resource values. In both
cases, the color model (mapping of color codes 8-15) is influenced by VGA
design which usually does not support bright backgrounds.
> color header yellow black Subject:
> color header brightcyan black .
> color body brightyellow black [_a-z\.\$A-Z0-9-]+@[a-zA-Z0-9\./\-]+
> color body yellow black (http|ftp)://[_a-zA-Z0-9\./~\-]+
> color quoted green black
> color signature brightblue black
> color attachment yellow black
> color tree red black
> color indicator black cyan
> color status yellow blue
> color tilde blue black
> color normal default default
I usually run with whatever's part of the source package (to see what the
developers of mutt are doing). This is what I have (from over a year ago)
at work (which of course may/may not correspond to the current version of
mutt):
#color normal white default
color hdrdefault red default
color quoted brightblue default
color signature red default
color indicator brightyellow red
color error brightred default
color status yellow blue
color tree magenta default # the thread tree in the index menu
color tilde magenta default
color message brightcyan default
color markers brightcyan default
color attachment brightmagenta default
color search default green # how to hilite search patterns in the pager
color header brightred default ^(From|Subject):
color body magenta default "(ftp|http)://[^ ]+" # point out URLs
color body magenta default [-a-z_0-9.]+@[-a-z_0-9.]+ # e-mail addresses
color underline brightgreen default
> And what I get is a brightwhiteyellow background. I also tried some color
> examples found in some muttrc from the Mutt site and some of them don't
> worked (invisible colors etc, impossible to use). So I don't know what I
> need to get this white background.
> Another program needing it is Midnight Commander. If you compile it with
> Slang (included Slang or from your system's Slang) you get the same
> brightwhiteyellow color. Try it in Options ---> Configure options. You get
> this background and "Configure options" and other things are yellow, so you
> need to have good eyes to see what's in yellow.
I don't do much with mc (I have my own directory editor). And I use ncurses
(the curses emulation in slang is too limited and nonstandard to bother with
using in programs written for curses). But in either case, the color values
are set at the terminal emulator level - not in the curses/ncurses/slang.