From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Is it possible to have 256 colors in Emacs on framebuffer-enabled tty Date: Wed, 31 Aug 2011 20:44:52 +0300 Message-ID: <83pqjleaqz.fsf@gnu.org> 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1314812760 9137 80.91.229.12 (31 Aug 2011 17:46:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 31 Aug 2011 17:46:00 +0000 (UTC) Cc: emacs-devel@gnu.org, zhangweize@gmail.com To: Wolfgang Jenkner Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 31 19:45:56 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 1QyorK-0007gq-Ql for ged-emacs-devel@m.gmane.org; Wed, 31 Aug 2011 19:45:55 +0200 Original-Received: from localhost ([::1]:42169 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyorK-0007CO-Dn for ged-emacs-devel@m.gmane.org; Wed, 31 Aug 2011 13:45:54 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyorI-0007CJ-FW for emacs-devel@gnu.org; Wed, 31 Aug 2011 13:45:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QyorH-0001p2-8e for emacs-devel@gnu.org; Wed, 31 Aug 2011 13:45:52 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:56855) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyorH-0001oi-2F for emacs-devel@gnu.org; Wed, 31 Aug 2011 13:45:51 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LQS00600ZDJXX00@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Wed, 31 Aug 2011 20:44:52 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.229.83.44]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LQS00616ZYRTM70@a-mtaout21.012.net.il>; Wed, 31 Aug 2011 20:44:52 +0300 (IDT) In-reply-to: <858vq9zh1c.fsf@iznogoud.viz> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.169 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:143667 Archived-At: > 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.