From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: zwz Newsgroups: gmane.emacs.devel Subject: Re: Is it possible to have 256 colors in Emacs on framebuffer-enabled tty Date: Mon, 29 Aug 2011 17:06:03 +0800 Message-ID: <8762lg60zo.fsf@gmail.com> References: <877h5xtxl8.fsf@gmail.com> <83hb51ftt4.fsf@gnu.org> <87aaas69bp.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1314608496 24273 80.91.229.12 (29 Aug 2011 09:01:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 29 Aug 2011 09:01:36 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 29 11:01:33 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qxxim-0007L0-HD for ged-emacs-devel@m.gmane.org; Mon, 29 Aug 2011 11:01:32 +0200 Original-Received: from localhost ([::1]:48223 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qxxil-0007XO-ND for ged-emacs-devel@m.gmane.org; Mon, 29 Aug 2011 05:01:31 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qxxij-0007XI-MP for emacs-devel@gnu.org; Mon, 29 Aug 2011 05:01:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qxxii-00082e-Ko for emacs-devel@gnu.org; Mon, 29 Aug 2011 05:01:29 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:44261) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qxxii-00082U-8b for emacs-devel@gnu.org; Mon, 29 Aug 2011 05:01:28 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Qxxig-0007Iz-Uw for emacs-devel@gnu.org; Mon, 29 Aug 2011 11:01:26 +0200 Original-Received: from 60.191.28.58 ([60.191.28.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Aug 2011 11:01:26 +0200 Original-Received: from zhangweize by 60.191.28.58 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Aug 2011 11:01:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 50 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 60.191.28.58 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:U6wqTQvqzsWsq0tmjf2sUP3XBBA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:143620 Archived-At: Eli Zaretskii writes: >> From: zwz >> Date: Mon, 29 Aug 2011 14:06:02 +0800 >> >> > First, your terminal should report to Emacs that it has 256 colors. >> > Does it? >> How to get the report? >> In bash, the cmd "tput colors" reports 256. >> While in Emacs, it does show 256 color *names* (by M-x >> list-color-display). > > list-color-display _is_ the correct way. > >> But in fact only the first 8 colors are showable, >> as the 8 color names are shown in the background with the > corresponding >> color; the other color names are shown with no color background. > > What are the names of the other colors, beyond the first 8, shown by > list-color-display? I made some mistake. The problem "tput color -> 256; Emacs -> 256 but in fact 8" only happens when I set TERM=xterm-256color, which is not the case since I am actually using fbterm. When I set TERM=fbterm. "tput color" also reports 256; while in Emacs list-color-display just shows 8 colors. The issue remains. BTW, the other color names are (when TERM=xterm-256color): brightblack brightblack #7f7f7f brightred brightred #ff0000 brightgreen brightgreen #00ff00 brightyellow brightyellow #ffff00 brightblue brightblue #5c5cff brightmagenta brightmagenta #ff00ff brightcyan brightcyan #00ffff brightwhite brightwhite #ffffff color-16 color-16 #000000 color-17 color-17 #00005f ... color-255 color-255 #eeeeee > > Also, which of the lisp/term/*.el files is being loaded by Emacs on > startup for that terminal? How can I tell which lisp/term/*.el is loaded?