From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: how to fix too-dark blue keywords with black background
Date: Fri, 03 Jun 2016 23:44:10 +0200 [thread overview]
Message-ID: <868tymne1h.fsf@student.uu.se> (raw)
In-Reply-To: 02f2cd61-f8a0-4ecd-b8ed-b4a31124f2bf@googlegroups.com
barrchris@gmail.com writes:
> Certain keywords display with an unreadable
> dark blue, on a black background. Like:
> getopts or echo or source, with emacs mode
> Shell-script[bash]. Other things are too dark
> in sql-mode: SQL[ansi]
>
> Is it best to change the dark blue in PuTTY
> settings or in emacs?
Both!
Start by setting up the terminal colors.
It is a good help to have a test function to
output all colors.
For example the below zsh. Here is a dump what
it shows for me:
http://user.it.uu.se/~embe8573/figures/shell/test-colors.png
Then get the colors right. I don't know how to
do that for PuTTY - for the Linux VTs and
X (e.g., xterm) tho there are some material
here:
http://user.it.uu.se/~embe8573/cols/www/index.html
http://user.it.uu.se/~embe8573/cols/www/COLORS
http://user.it.uu.se/~embe8573/scripts/cols
After you have done this, nine out of ten
colors in Emacs should look good. If you see
one that doesn't, place point at it and use
this function to find out what face it is:
(defun what-face (pos)
(interactive "d")
(let((face (or (get-char-property pos 'face)
(get-char-property pos 'read-cf-name) )))
(message " Face: %s" (or face "(no face!)")) ))
Then re-assign the face some other color which
is better in that context.
Oh, the zsh - change into bash if needed:
set-fg-color () { tput setaf $1 } # color ($1) is 0-7
set-bg-color () { tput setab $1 }
set-bold () { tput bold }
reset-color () { tput sgr0 }
test-colors () {
local color_number
local color
local -a color_names
color_names=(black red green yellow blue magenta cyan white)
echo
for color_number in {0..7}; do
echo -n " $color_number "
set-fg-color $color_number
color=$color_names[(( $color_number + 1 ))]
echo -n $color "\t"; tput bold; echo $color
reset-color
done
echo
}
From the file: http://user.it.uu.se/~embe8573/conf/.zsh/vt
Good luck!
--
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
- so far: 45 Blogomatic articles -
next prev parent reply other threads:[~2016-06-03 21:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-03 19:26 how to fix too-dark blue keywords with black background barrchris
2016-06-03 21:44 ` Emanuel Berg [this message]
2016-06-10 13:41 ` barrchris
2016-06-10 14:04 ` Emanuel Berg
2016-06-10 14:52 ` barrchris
2016-06-10 16:21 ` tomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=868tymne1h.fsf@student.uu.se \
--to=embe8573@student.uu.se \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).