Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

256 colors in ansi-term buffers

54 views
Skip to first unread message

Christopher Grubert

unread,
May 17, 2012, 2:58:13 AM5/17/12
to help-gn...@gnu.org
Is there any way to get 256 color support in ansi-term? By that I mean
256 colors in an ansi-term buffer with emacs running under X, not 256
colors for emacs -nw when running in an ansi terminal (which seems to be
the more popular question).

Looking at the definition of eterm-color it only advertises 8 colors,
and the code for term.el seems consistent with that, having only an 8
entry color vector that can be remapped. In my application I need as
close to a real terminal as possible so eshell isn't an alternative.
Any suggestions?
Thanks,
Chris.

Stefan Monnier

unread,
May 20, 2012, 9:20:24 PM5/20/12
to
> Looking at the definition of eterm-color it only advertises 8 colors, and
> the code for term.el seems consistent with that, having only an 8 entry
> color vector that can be remapped. In my application I need as close
> to a real terminal as possible so eshell isn't an alternative.
> Any suggestions?

I guess you'll need to add the feature to one of the terminal emulators
(either term.el or nterm.el).
IOW, patches welcome,


Stefan

Christopher Grubert

unread,
May 21, 2012, 8:33:55 PM5/21/12
to help-gn...@gnu.org
After thinking about it a little more I realized that I generally don't
use more than 10 colors in my shell...just a very specific 10 colors.
So the vector remap actually is pretty usable with only a few things
collapsed together. As time allows I will look at adding the full
support. At first glance that seems straightforward enough, although
I'm probably underestimating it. I haven't looked at nterm.el yet.
I'll do that next.
Chris.

0 new messages