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: Thu, 01 Sep 2011 22:35:14 +0800 Message-ID: <87zkiogwkd.fsf@gmail.com> References: <877h5xtxl8.fsf@gmail.com> <83hb51ftt4.fsf@gnu.org> <87aaas69bp.fsf@gmail.com> <8762lg60zo.fsf@gmail.com> <4E5C0C35.7050300@harpegolden.net> <87ei03805d.fsf@gmail.com> <83zkiqeq7i.fsf@gnu.org> <858vq9zh1c.fsf@iznogoud.viz> <83pqjleaqz.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1314887436 31731 80.91.229.12 (1 Sep 2011 14:30:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 1 Sep 2011 14:30:36 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 01 16:30:32 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 1Qz8Ho-000772-J0 for ged-emacs-devel@m.gmane.org; Thu, 01 Sep 2011 16:30:32 +0200 Original-Received: from localhost ([::1]:46648 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qz8Ho-0005YA-2Z for ged-emacs-devel@m.gmane.org; Thu, 01 Sep 2011 10:30:32 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qz8Hk-0005Y3-VH for emacs-devel@gnu.org; Thu, 01 Sep 2011 10:30:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qz8Hi-0000DR-UD for emacs-devel@gnu.org; Thu, 01 Sep 2011 10:30:28 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:50482) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qz8Hi-0000DE-KA for emacs-devel@gnu.org; Thu, 01 Sep 2011 10:30:26 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Qz8Hg-00074i-Gh for emacs-devel@gnu.org; Thu, 01 Sep 2011 16:30:24 +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 ; Thu, 01 Sep 2011 16:30:24 +0200 Original-Received: from zhangweize by 60.191.28.58 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Sep 2011 16:30:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 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:3B5ICBOStt+JAFGcI6vxA6dx+Gg= 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:143690 Archived-At: Eli Zaretskii writes: >> From: Wolfgang Jenkner >> Cc: zwz , emacs-devel@gnu.org >> Date: Wed, 31 Aug 2011 18:23:27 +0200 >> >> I think the 256 colors support in term/xterm.el is general enough to >> support fbterm as well. > > The setting of the colors themselves is not the terminal specific > part; the part that queries xterm about the number of colors is. > > If fbterm always supports only 256 colors, then similar code can be > used there unconditionally. > > Another aspect of this is the RGB values: the ones in xterm.el were > taken from the xterm source code. We should make sure fbterm uses the > same colors, before we use these values for fbterm. > > Finally, the color names in xterm.el were also taken from the xterm > nomenclature. Does fbterm use the same names? if not, we should > probably use its own names, for consistency. I compared the outputs of (list-color-display) with Emacs on xterm (X) and fbterm (tty, with the code by Wolfgang Jenkner). They are the same.