Re: multi X display Emacs
Yoshiaki Kasahara <kasahara <at> nc.kyushu-u.ac.jp>
2007-05-08 04:23:39 GMT
On Mon, 07 May 2007 23:58:42 -0400,
timotheus <timotheus <at> tstotts.net> said:
> Now ViM and such may use 256 colors, even in urxvt. But Emacs still cannot
> figure out that there are 256 colors, despite the correct terminfo entries,
Emacs checks TERM variable to customize itself for the terminal.
term/README in the elisp directory says:
--------------
When Emacs opens a new terminal, it checks the TERM environment variable to
see what type of terminal the user is running on, searches for an elisp file
named "term/${TERM}.el", and if one exists, loads it. If Emacs finds no
suitable file, then it strips the last hyphen and what follows it from TERM,
and tries again. If that still doesn't yield a file, then the previous hyphen
is stripped, and so on until all hyphens are gone. For example, if the
terminal type is `aaa-48-foo', Emacs will try first `term/aaa-48-foo.el', then
`term/aaa-48.el' and finally `term/aaa.el'. Emacs stops searching at the
first file found, and will not load more than one file for any terminal. Note
that it is not an error if Emacs is unable to find a terminal initialization
file; in that case, it will simply proceed with the next step without loading
any files.
--------------
Only term/xterm.el and term/rxvt.el have the code to use 88 or 256
colors (registering the default set of colors available), so I need
to use name "xterm-foobar" for the TERM variable.
Maybe it's better to have term/screen.el to fully utilize 256-color
(Continue reading)