From: Eli Zaretskii <eliz@elta.co.il>
Subject: Re: colors using -nw in 21.3
Date: 25 Mar 2004 09:04:47 +0200 [thread overview]
Message-ID: <u8yhpwgog.fsf@elta.co.il> (raw)
In-Reply-To: <4062400C.50009@usc.edu> (message from KC Braunschweig on Wed, 24 Mar 2004 18:12:28 -0800)
> Date: Wed, 24 Mar 2004 18:12:28 -0800
> From: KC Braunschweig <kbraunsc@usc.edu>
>
> I've recently installed emacs 21.3, compiled on Solaris 2.6 to run on
> 2.6, 8 and 9 (SPARC). When running with the -nw option, color support
> produces unexpected results. Our previous version (20.2.1) supported a
> wide range of colors (for example $ emacs -fg DarkSlateGrey -bg wheat
> -nw). The 21.3 installation seems to only support the the 8 standard
> colors listed via M-x list-colors-display and selecting any other
> colors, such as those in my example results in a bright green color
> being used.
Emacs before version 21.1 didn't support colors in -nw sessions at
all. I don't know how you got colors in Emacs 20.2.1 (was that, by
any chance, XEmacs?), but finding that out would be a useful first
step. Perhaps the previous version used some site-specific hack to
achieve that.
Emacs 21.x uses the number of colors reported by the termcap/terminfo
database you have on that platform. If it reports 8 colors, that is
all you will see (list-colors-display shows the number of colors
reported by the terminal capability database).
> The man page leads me to believe that all colors listed in
> /usr/lib/X11/rgb.txt should be supported.
What man page is that?
Anyway, to use colors on a text terminal, Emacs needs a way to issue
terminal commands that switch colors. These commands are executed by
the terminal device driver on your system, so only the colors
supported by that driver and the terminal device you run Emacs on can
be used. If you run on an xterm, the terminfo entry for that version
of xterm needs to define the number of colors and commands to switch
to those colors, in order for Emacs to use them.
prev parent reply other threads:[~2004-03-25 7:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-25 2:12 colors using -nw in 21.3 KC Braunschweig
2004-03-25 7:04 ` Eli Zaretskii [this message]
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=u8yhpwgog.fsf@elta.co.il \
--to=eliz@elta.co.il \
--cc=eliz@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).