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: Tue, 30 Aug 2011 22:05:50 +0800 Message-ID: <87ei03805d.fsf@gmail.com> References: <877h5xtxl8.fsf@gmail.com> <83hb51ftt4.fsf@gnu.org> <87aaas69bp.fsf@gmail.com> <8762lg60zo.fsf@gmail.com> <4E5C0C35.7050300@harpegolden.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1314712885 24497 80.91.229.12 (30 Aug 2011 14:01:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 30 Aug 2011 14:01:25 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 30 16:01:21 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 1QyOsS-0002O6-QS for ged-emacs-devel@m.gmane.org; Tue, 30 Aug 2011 16:01:20 +0200 Original-Received: from localhost ([::1]:37128 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyOsS-00067H-Bk for ged-emacs-devel@m.gmane.org; Tue, 30 Aug 2011 10:01:20 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:44210) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyOsM-0005re-D9 for emacs-devel@gnu.org; Tue, 30 Aug 2011 10:01:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QyOsL-000392-2u for emacs-devel@gnu.org; Tue, 30 Aug 2011 10:01:14 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:60234) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyOsK-00038l-OD for emacs-devel@gnu.org; Tue, 30 Aug 2011 10:01:13 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QyOsH-0002HW-HD for emacs-devel@gnu.org; Tue, 30 Aug 2011 16:01:09 +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 ; Tue, 30 Aug 2011 16:01:09 +0200 Original-Received: from zhangweize by 60.191.28.58 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 Aug 2011 16:01:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 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:dgMcNbma15cgEwOBO+O8HA1w64M= 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:143645 Archived-At: David De La Harpe Golden writes: > On 29/08/11 10:06, zwz wrote: > >> 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. > > That was unlikely to work anyway, as the fbterm guys have apparenrtly > chosen to use quite different escapes to xterm for 256 colors. I > understand that they were seeking to retain compat with linux kernel vt, > and the linux vt was already using that escape (for something fairly > unimportant IIRC*), but since they are _not_ the linux vts and they > _are_ a different terminal anyway, IMO they would have been better off > using the same escapes as xterm (and everyone else) for 256 colors and > just moving the linux vt one somewhere, but anyway. At the same time, > they're probably "in the right" insofar as apps properly using terminfo > should be able to cope with both. > > Emacs probably should be querying more from terminfo and hardcoding less > (yeah yeah, "patches welcome", I know). In any case, right now, we > probably do need a lisp/term/fbterm.el, and unfortunately it probably > can't completely reuse the xterm.el code, unlike screen.el Do you mean if there is a lisp/term/fbterm.el that deals with the escapes, then it is possible to have 256 colors in Emacs on fbterm? > > * I remember looking at feasibility of a linux kernel patch for native > 256-color vts on framebuffers years ago but my attention rapidly > wandered... This seems to be a better solution.