emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: term/screen.el - screen terminfo/color setup


From: Samuel Bronson
Subject: Re: term/screen.el - screen terminfo/color setup
Date: Fri, 18 Nov 2011 16:29:24 -0500

On Sun, Oct 16, 2011 at 12:59 PM, Michael Raitza
<address@hidden> wrote:
> Hi,
>
> the screen.el in bzr is incomplete as it just tries to impersonate xterm.
> The screen terminfo description defines its own (different from e.g.
> xterm) key bindings. As you can see my solution makes use of the
> COLORTERM environment variable (as does xterm.el itself) and correctly
> specifies the key bindings.
>
> One question: According to term/README the key binding for END should be
> [end], but everyone else seems to specify [select] there (See comment
> below in screen.el). Which one is correct?

So, you're saying that emacs can't just figure it out from the
terminfo and the following:

% cat ~/.emacs/term/screen.el
;;; From http://www.xvx.ca/~awg/emacs-colors-howto.txt

;;; 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))
%

Because that seems to have worked pretty well for me in Emacs 22/23 so far.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]