emacs-pretest-bug
[Top][All Lists]
Advanced

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

rxvt vs xterm keybindings


From: Dan Nicolaescu
Subject: rxvt vs xterm keybindings
Date: Fri, 22 Jul 2005 08:57:51 -0700

It seems that quite often users of the rxvt terminal set the TERM
variable to "xterm". This causes Emacs to load term/xterm.el. 
Unfortunately the strings emitted by the different keys are
not the same for xterm and rxvt, so loading term/xterm.el is not very
useful for an rxvt user.

There is a way to distinguish a "real" xterm from an rxvt terminal
(see at the end of term/xterm.el):  

(and (getenv "COLORTERM")
     (string-match "\\`rxvt" (getenv "COLORTERM"))
....


How about we put something like that at the beginning of term/xterm.el
and do 

(if (and (getenv "COLORTERM")
     (string-match "\\`rxvt" (getenv "COLORTERM")))
     (load "term/rxvt")

 THE REST OF TERM/XTERM.EL
)

Thoughts? 

Thanks

                --dan




reply via email to

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