[prev in list] [next in list] [prev in thread] [next in thread]
List: mutt-users
Subject: Colour issues in mutt under S-Lang
From: "Daniel P. Wright" <dani () dpwright ! com>
Date: 2012-08-24 2:54:15
Message-ID: 20120824025415.GA29218 () vitei ! com
[Download RAW message or body]
Hello,
I've been trying to tweak my colour scheme recently, and found some
strange functionality which I don't understand. I'm not sure if it's a
bug or an error in my configuration -- and if it is a bug I don't know
whether it lies in mutt, or s-lang, or my terminal.
The problem is as follows: colour highlighting seems to change based on
what colours are set for *other* highlighted objects. For example, if I
have the following two rules in my configuration:
color index brightmagenta default "~P"
color index magenta default "~f hiyokko | ~C hiyokko"
Configured as above, messages from me are highlighted in bright magenta
(with bold text), and messages from or to hiyokko are highlighted in
magenta, as you would expect. However, if I change the rule for
messages from me to be blue instead of brightmagenta, ie:
color index blue default "~P"
color index magenta default "~f hiyokko | ~C hiyokko"
The messages from me work fine -- they are highlighted in blue -- but
messages to or from hiyokko are suddenly highlighted in bright orange.
Of course, I have quite a few more rules than this in real life, and I
find that increasingly modifying or adding a rule is a delicate
balancing act -- I tweak the colours for SVN notifications, only to find
that the subject line and first level of quotations -- previously set to
blue -- have turned bright green!
I tried compiling against curses instead of slang, but colours barely
worked at all when I did that.
Any advice appreciated. My configuration can be found on github[1].
It's based on a "solarized" theme I found on the internet with bits
commented out and replaced here and there so it's a bit messy, but
hopefully understandable. The output of "mutt -v" is as follows:
Mutt 1.5.21 (2011-07-01)
Copyright (C) 1996-2009 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.
System: FreeBSD 9.0-RELEASE (i386)
slang: 20204
libiconv: 1.14
libidn: 1.22 (compiled with 1.22)
hcache backend: GDBM version 1.9.1. 13/08/2011 (built Nov 27 2011
11:03:27)
コンパイル時オプション:
-DOMAIN
-DEBUG
-HOMESPOOL +USE_SETGID +USE_DOTLOCK +DL_STANDALONE -USE_FCNTL
-USE_FLOCK
-USE_POP -USE_IMAP -USE_SMTP
-USE_SSL_OPENSSL -USE_SSL_GNUTLS -USE_SASL -USE_GSS
-HAVE_GETADDRINFO
+HAVE_REGCOMP -USE_GNU_REGEX
+HAVE_COLOR -HAVE_START_COLOR -HAVE_TYPEAHEAD -HAVE_BKGDSET
-HAVE_CURS_SET -HAVE_META -HAVE_RESIZETERM
+CRYPT_BACKEND_CLASSIC_PGP +CRYPT_BACKEND_CLASSIC_SMIME
-CRYPT_BACKEND_GPGME
-EXACT_ADDRESS -SUN_ATTACHMENT
+ENABLE_NLS +LOCALES_HACK +HAVE_WC_FUNCS +HAVE_LANGINFO_CODESET
+HAVE_LANGINFO_YESEXPR
+HAVE_ICONV -ICONV_NONTRANS +HAVE_LIBIDN +HAVE_GETSID +USE_HCACHE
-ISPELL
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/mail"
PKGDATADIR="/usr/local/share/mutt"
SYSCONFDIR="/usr/local/etc"
EXECSHELL="/bin/sh"
-MIXMASTER
開発者(本家)に連絡をとるには <mutt-dev@mutt.org> へメールせよ。
バグをレポートするには http://bugs.mutt.org/ を参照のこと。
日本語版のバグレポートおよび連絡は mutt-j-users ML へ。
Many thanks,
Dani.
[1] https://github.com/dpwright/dotfiles/blob/master/.mutt/mutt-colors-solarized-dark-16.muttrc
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic