* colors using -nw in 21.3
@ 2004-03-25 2:12 KC Braunschweig
2004-03-25 7:04 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: KC Braunschweig @ 2004-03-25 2:12 UTC (permalink / raw)
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.
The man page leads me to believe that all colors listed in
/usr/lib/X11/rgb.txt should be supported. We've tested this in
xterm-color as well as dtterm with the same results. Any idea what has
gone wrong? Did I miss an option when compiling?
The only configure option I used was --prefix. I used:
gcc: 2.95.2
make: Solaris 2.6 make
Thanks,
KC Braunschweig
Information Services Division
University of Southern California
/ /
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: colors using -nw in 21.3
2004-03-25 2:12 colors using -nw in 21.3 KC Braunschweig
@ 2004-03-25 7:04 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2004-03-25 7:04 UTC (permalink / raw)
> 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-03-25 7:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-25 2:12 colors using -nw in 21.3 KC Braunschweig
2004-03-25 7:04 ` Eli Zaretskii
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).