From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: presto08@me.com Newsgroups: gmane.emacs.devel Subject: Re: Add "lisp/term/screen-256color.el" for GNU Screen's 256 color mode? Date: Fri, 20 Feb 2009 23:22:58 +0200 Message-ID: <3EBAB449-471F-45AE-84A5-0815C1CFAC31@me.com> References: <22117277.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7BIT X-Trace: ger.gmane.org 1235166412 20363 80.91.229.12 (20 Feb 2009 21:46:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Feb 2009 21:46:52 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 20 22:48:05 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LadDx-0007eA-Fy for ged-emacs-devel@m.gmane.org; Fri, 20 Feb 2009 22:47:57 +0100 Original-Received: from localhost ([127.0.0.1]:37118 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LadCc-0002Bw-Uk for ged-emacs-devel@m.gmane.org; Fri, 20 Feb 2009 16:46:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lacpx-00076j-Gn for emacs-devel@gnu.org; Fri, 20 Feb 2009 16:23:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lacpw-00076C-BU for emacs-devel@gnu.org; Fri, 20 Feb 2009 16:23:08 -0500 Original-Received: from [199.232.76.173] (port=42372 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lacpw-000763-3y for emacs-devel@gnu.org; Fri, 20 Feb 2009 16:23:08 -0500 Original-Received: from asmtpout022.mac.com ([17.148.16.97]:48143) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lacpv-0000zh-PG for emacs-devel@gnu.org; Fri, 20 Feb 2009 16:23:07 -0500 Original-Received: from [192.168.0.38] (cs181047144.pp.htv.fi [82.181.47.144]) by asmtp022.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0KFD00HJRVEBMW50@asmtp022.mac.com> for emacs-devel@gnu.org; Fri, 20 Feb 2009 13:23:06 -0800 (PST) In-reply-to: X-Mailer: Apple Mail (2.930.3) X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (1203?) X-Mailman-Approved-At: Fri, 20 Feb 2009 16:44:50 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:109263 Archived-At: Stefan Monnier kirjoitti 20.2.2009 kello 23.10: >> (load "term/xterm") > >> (defun terminal-init-screen () >> "Terminal initialization function for screen." >> ;; Use the xterm color initialization code. >> (xterm-register-default-colors) >> (tty-set-up-initial-frame-faces)) > >> I tried this on my local setup, and it seems to work with >> a "screen-256color" terminal -- all colors show up as expected with >> list- >> colors-display. > > Does it work also for non-256color screen? Yes, in the sense that when TERM=screen Emacs starts up normally and doesn't complain about anything (and shows the normal eight colors for list-colors-display), if that is what you meant. Seems like reasonable behavior to me.