unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Presto Ten <presto08@me.com>
To: Emacs-devel@gnu.org
Subject: Add "lisp/term/screen-256color.el" for GNU Screen's 256 color mode?
Date: Fri, 20 Feb 2009 01:12:37 -0800 (PST)	[thread overview]
Message-ID: <22117277.post@talk.nabble.com> (raw)


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.





             reply	other threads:[~2009-02-20  9:12 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-20  9:12 Presto Ten [this message]
2009-02-20 15:15 ` Add "lisp/term/screen-256color.el" for GNU Screen's 256 color mode? Stefan Monnier
2009-02-20 17:46   ` David De La Harpe Golden
2009-02-20 21:09     ` Stefan Monnier
2009-02-21 14:22       ` David De La Harpe Golden
2009-03-06 19:38       ` presto08
2009-03-07 19:38         ` Chong Yidong
2009-02-20 18:44   ` presto08
2009-02-20 21:10     ` Stefan Monnier
2009-02-20 21:22       ` presto08
  -- strict thread matches above, loose matches on Subject: below --
2009-03-07 13:04 Xavier Maillard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=22117277.post@talk.nabble.com \
    --to=presto08@me.com \
    --cc=Emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).