LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Mutt (https://www.linuxquestions.org/questions/linux-software-2/mutt-4175531322/)

battles 01-17-2015 10:49 AM

Mutt
 
I am trying to no avail to change the background color (black) of mutt when it is started. Any suggestions?

Thanks.

Head_on_a_Stick 01-17-2015 10:52 AM

Add this to your ~/.muttrc:
Code:

color <object> <foreground> <background>
See man muttrc:
Quote:

color object foreground background [ regexp ]
color index foreground background [ pattern ]
uncolor index pattern [ pattern ... ]

If your terminal supports color, these commands can be used to assign fore‐
ground/background combinations to certain objects. Valid objects are: attachment,
body, bold, header, hdrdefault, index, indicator, markers, message, normal, quoted,
quotedN, search, signature, status, tilde, tree, underline. The body and header
objects allow you to restrict the colorization to a regular expression. The index
object permits you to select colored messages by pattern.

Valid colors include: white, black, green, magenta, blue, cyan, yellow, red,
default, colorN.

battles 01-17-2015 11:52 AM

Yes, I have tried these, but can't seem to find the mutt window background parameter.

Head_on_a_Stick 01-17-2015 11:54 AM

What exactly have you tried in your .muttrc?

battles 01-17-2015 11:58 AM

Quote:

Originally Posted by Head_on_a_Stick (Post 5302462)
What exactly have you tried in your .muttrc?

# This configuration file contains the default settings used by old debian
# packages (< 0.94).

set quote_regexp="^[ \t]*[a-zA-Z\.]*>" # Default: "^([ \t]*[>|#:}])+"

#
# More header weeding
#
ignore Resent- Precedence In-Reply-To Return-Receipt-To Mailer X400
ignore Originator X-Loop X-Mailing-List X-Listprocessor X-Face
ignore X-Received X-Mailer X-Envelope-To X-Sender X-Attribution

# Usenet headers can occur for Cc-ed messages; they can still be
# recognized by the Newsgroups header.
ignore Path Lines NNTP-Posting-Host X-Newsreader X-Submitted-Via

#
# Key bindings
#

bind editor <delete> delete-char


set from = "me@my.net"
set realname = "admin"

color hdrdefault white red
color attachment yellow default

color header brightyellow default "^date:"
mono header bold "^date:"
color header brightyellow default "^to:"
mono header bold "^to:"
color header brightyellow default "^from:"
mono header bold "^from:"
color header brightyellow default "^subject:"
mono header bold "^subject:"

color quoted green default
color quoted1 cyan default
color quoted2 green default
color quoted3 cyan default

color error red default # error messages
color message white blue # message informational messages
color indicator blue red
color status white blue # status lines in the folder index sed for the mini-help line
color tree red default # the "tree" display of threads within the folder index
color search white blue # search matches found with search within the internal pager
color markers red default # The markers indicate a wrapped line hen showing messages with looong lines

color index yellow default '~O'
color index yellow default '~N'
color index brightred default '~F' # Flagged Messages are important!
color index blue default '~D' # Deleted Mails - use dark color as these are already "dealt with"

Head_on_a_Stick 01-17-2015 12:19 PM

Code:

color normal <foreground colour> <background colour>

battles 01-17-2015 12:42 PM

Thank you very much. That was it. I just couldn't find it in the examples I was consulting.

Head_on_a_Stick 01-17-2015 12:50 PM

You're welcome :)


All times are GMT -5. The time now is 01:54 AM.