From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Martin Karlsson Newsgroups: gmane.emacs.help Subject: Re: emacs -nw, xterm and 256 colors [solved] Date: Thu, 29 Mar 2007 20:54:22 +0200 Message-ID: <86wt0zubhd.fsf@soeren.network.lan> References: <86vegmenzb.fsf@soeren.network.lan> <86d52sutn9.fsf@soeren.network.lan> <861wj8uljk.fsf@soeren.network.lan> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1175194477 4618 80.91.229.12 (29 Mar 2007 18:54:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Mar 2007 18:54: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 Thu Mar 29 20:54:30 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HWzlK-00012G-Us for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Mar 2007 20:54:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWznw-0006qM-1g for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Mar 2007 13:57:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HWznj-0006qG-Dq for help-gnu-emacs@gnu.org; Thu, 29 Mar 2007 14:56:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HWznh-0006pP-Qg for help-gnu-emacs@gnu.org; Thu, 29 Mar 2007 14:56:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWznh-0006pM-Nm for help-gnu-emacs@gnu.org; Thu, 29 Mar 2007 13:56:45 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HWzl5-0000Fo-G8 for help-gnu-emacs@gnu.org; Thu, 29 Mar 2007 14:54:03 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HWzkw-00063v-8x for help-gnu-emacs@gnu.org; Thu, 29 Mar 2007 20:53:54 +0200 Original-Received: from c-38c070d5.010-54-6f72652.cust.bredbandsbolaget.se ([213.112.192.56]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Mar 2007 20:53:54 +0200 Original-Received: from qsvans by c-38c070d5.010-54-6f72652.cust.bredbandsbolaget.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Mar 2007 20:53:54 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: c-38c070d5.010-54-6f72652.cust.bredbandsbolaget.se X-URL: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (berkeley-unix) Cancel-Lock: sha1:1+jFfPsNyff7YUbWCaYdYZ1Rjo4= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42279 Archived-At: Leo wrote: > That looks awesome. What specifically did you do to get there? First off, most of the following explanation is me guessing, not hard facts. Secondly, since you're on Linux, I'm guessing your system favours terminfo over termcap. I'm using FreeBSD, which unfortunately seems to rely more on (the older) termcap. In short, my terminfo.db has a valid xterm-256color entry (which I believe is ignored by many apps), and has termcap.db entries which map all xterms with more tha 8 colours to an xterm TERM *with* 8 colours. In other words, when i set my TERM to xterm-256color, xterm happily obliges since it looks in terminfo. That only gives the actual xterm access to all those nice colours though. Some other apps (including emacs), [again this is on FreeBSD -- may or may not apply to linuxen] use termcap, and conlude that my xterm is only capable of displaying 8 colours. Having said that, the full story (meager and potentially wildly dangerous as it may be) can be found at: Good luck, -- Martin Karlsson