From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Presto Ten Newsgroups: gmane.emacs.devel Subject: Add "lisp/term/screen-256color.el" for GNU Screen's 256 color mode? Date: Fri, 20 Feb 2009 01:12:37 -0800 (PST) Message-ID: <22117277.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1235123726 1791 80.91.229.12 (20 Feb 2009 09:55:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Feb 2009 09:55:26 +0000 (UTC) To: Emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 20 10:56:41 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 1LaS7a-0005qw-G8 for ged-emacs-devel@m.gmane.org; Fri, 20 Feb 2009 10:56:38 +0100 Original-Received: from localhost ([127.0.0.1]:45555 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LaS6G-0004Mn-CU for ged-emacs-devel@m.gmane.org; Fri, 20 Feb 2009 04:55:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LaRR2-0006tK-Mq for emacs-devel@gnu.org; Fri, 20 Feb 2009 04:12:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LaRR1-0006t0-UX for Emacs-devel@gnu.org; Fri, 20 Feb 2009 04:12:40 -0500 Original-Received: from [199.232.76.173] (port=54599 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LaRR1-0006sw-PR for Emacs-devel@gnu.org; Fri, 20 Feb 2009 04:12:39 -0500 Original-Received: from kuber.nabble.com ([216.139.236.158]:49417) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LaRR1-0002rE-Dr for Emacs-devel@gnu.org; Fri, 20 Feb 2009 04:12:39 -0500 Original-Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LaRQz-00079b-Ts for Emacs-devel@gnu.org; Fri, 20 Feb 2009 01:12:37 -0800 X-Nabble-From: presto08@me.com X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Fri, 20 Feb 2009 04:54:34 -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:109247 Archived-At: Last year Trent W. Buck posted to emacs-devel notes about GNU Screen's 256 color mode and Emacs. To have Emacs recognize the "screen-256color" terminal and its full range of colors, the file "term/screen-256color.el" needs to be in the load path. Trent wrote as follows: > So you need a file term/screen-256color.el in your load-path. Emacs > 22 expects it to contain a terminal-init-screen defun. Emacs 21 > expects it to contain a bunch of top-level forms. Here's what I use:: > > ;;; This is for GNU Emacs 22 > (defun terminal-init-screen () > "Terminal initialization function for screen." > ;; Use the xterm color initialization code. > (load "term/xterm") > (xterm-register-default-colors) > (tty-set-up-initial-frame-faces)) > (Full message at http://www.nabble.com/Re%3A-screen%2C-256color-mode-and-ssh-p15099410.html) Could this be added as "lisp/term/screen-256color.el" to Emacs CVS, so it works out of the box for everyone? Having 256 colors in the terminal as opposed to 8/16 makes a world of difference in code coloring. (Note: GNU Screen must be compiled with --enable-color256 and have "term screen-256color" in "$HOME/.screenrc" for 256 colors to be used.) Presto -- View this message in context: http://www.nabble.com/Add-%22lisp-term-screen-256color.el%22-for-GNU-Screen%27s-256-color-mode--tp22117277p22117277.html Sent from the Emacs - Dev mailing list archive at Nabble.com.