From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christopher Grubert Newsgroups: gmane.emacs.help Subject: Re: 256 colors in ansi-term buffers Date: Mon, 21 May 2012 20:33:55 -0400 Message-ID: <4FBADEF3.40601@comcast.net> References: Reply-To: cgrubert02@comcast.net NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1337646877 9679 80.91.229.3 (22 May 2012 00:34:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 May 2012 00:34:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 22 02:34:37 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SWd3X-0001fJ-2X for geh-help-gnu-emacs@m.gmane.org; Tue, 22 May 2012 02:34:31 +0200 Original-Received: from localhost ([::1]:45986 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWd3W-0004GT-Aq for geh-help-gnu-emacs@m.gmane.org; Mon, 21 May 2012 20:34:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWd3K-0004Fn-IZ for help-gnu-emacs@gnu.org; Mon, 21 May 2012 20:34:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWd31-0008VN-Ox for help-gnu-emacs@gnu.org; Mon, 21 May 2012 20:34:18 -0400 Original-Received: from qmta07.westchester.pa.mail.comcast.net ([76.96.62.64]:53456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWd31-0008V3-LP for help-gnu-emacs@gnu.org; Mon, 21 May 2012 20:33:59 -0400 Original-Received: from omta22.westchester.pa.mail.comcast.net ([76.96.62.73]) by qmta07.westchester.pa.mail.comcast.net with comcast id Cm7v1j0051ap0As57oZxUK; Tue, 22 May 2012 00:33:57 +0000 Original-Received: from indigo.weaselnet ([75.68.37.98]) by omta22.westchester.pa.mail.comcast.net with comcast id CoZv1j013273BXP3ioZw6C; Tue, 22 May 2012 00:33:57 +0000 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc13 Lightning/1.0b2 Thunderbird/3.1.10 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 76.96.62.64 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84924 Archived-At: 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.