unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: presto08@me.com
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Add "lisp/term/screen-256color.el" for GNU Screen's 256 color mode?
Date: Fri, 20 Feb 2009 20:44:26 +0200	[thread overview]
Message-ID: <A5754048-1B9A-4755-A844-BCAB00F5BC2C@me.com> (raw)
In-Reply-To: <jwv3ae9p2ny.fsf-monnier+emacs@gnu.org>

Stefan Monnier kirjoitti 20.2.2009 kello 17.15:

>> 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:
>
> Having a function terminal-init-screen in file screen-256color.el
> doesn't make sense.  The function probably needs to be renamed to
> terminal-init-screen-256color.  OTOH the file could probably be named
> just term/screen.el (which would make sense if you consider that
> "screen-256color" will probably turn into the standard "screen"
> definition at some point in the future).
>
> Also the `load' should probably be moved from inside to outside of the
> function (tho, this is very minor).

I suppose it makes sense to rename it to "term/screen.el", and move  
the `load' outside of the function. So, here is a new version of "term/ 
screen.el":

(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.

Would this make a good candidate for inclusion? I'm not really  
familiar enough with Emacs' terminal handling to be able to judge what  
the right thing to do is -- I would just like to see Emacs support  
screen-256color out of the box.




  parent reply	other threads:[~2009-02-20 18:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-20  9:12 Add "lisp/term/screen-256color.el" for GNU Screen's 256 color mode? Presto Ten
2009-02-20 15:15 ` 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 [this message]
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=A5754048-1B9A-4755-A844-BCAB00F5BC2C@me.com \
    --to=presto08@me.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).