all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 256 colors in ansi-term buffers
@ 2012-05-17  6:58 Christopher Grubert
  0 siblings, 0 replies; 3+ messages in thread
From: Christopher Grubert @ 2012-05-17  6:58 UTC (permalink / raw
  To: help-gnu-emacs

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.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 256 colors in ansi-term buffers
       [not found] <mailman.1258.1337237901.855.help-gnu-emacs@gnu.org>
@ 2012-05-21  1:20 ` Stefan Monnier
  2012-05-22  0:33   ` Christopher Grubert
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2012-05-21  1:20 UTC (permalink / raw
  To: help-gnu-emacs

> 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 256 colors in ansi-term buffers
  2012-05-21  1:20 ` 256 colors in ansi-term buffers Stefan Monnier
@ 2012-05-22  0:33   ` Christopher Grubert
  0 siblings, 0 replies; 3+ messages in thread
From: Christopher Grubert @ 2012-05-22  0:33 UTC (permalink / raw
  To: help-gnu-emacs

On 01/-10/-28163 02:59 PM, Stefan Monnier wrote:
>> 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
>
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.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-22  0:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1258.1337237901.855.help-gnu-emacs@gnu.org>
2012-05-21  1:20 ` 256 colors in ansi-term buffers Stefan Monnier
2012-05-22  0:33   ` Christopher Grubert
2012-05-17  6:58 Christopher Grubert

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.