help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: bug in xterm -nw mode?


From: Thomas Dickey
Subject: Re: bug in xterm -nw mode?
Date: 16 Jul 2003 12:08:42 GMT
User-agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (SunOS/5.8 (sun4u))

Sam Halliday <devnull@example.com> wrote:
> hi there,

> i have seen other people with the same thing as me on many mailing
> lists. this
> http://lists.debian.org/debian-devel/2000/debian-devel-200004/msg00261.html
> mail from a Rodrigo Castro was the solution for me, but his posting
> (quite some time ago) seemed to go unnoticed by the xemacs team and i
> dont know if this has ever been reported to FSF emacs.

> basically, if i start up emacs from an xterm (aterm with
> TERM=xterm-color) with "-nw", the [home] and [end] keys do not work as

but
        TERM=xterm-color 

is not guaranteed to match aterm (which happens to be a descendent of rxvt).

Try
        infocmp xterm-color rxvt

to see if this is the source of the problem.

> they do in a console (i use TERM=linux there), [end] does nothing, and
> [home] starts up a string search. (The Del key also deletes backwards
> instead of forwards.)

> a `cat [home] [end]` gives
>   ^[[1~^[[4~

> i quote Rodrigo:
>   /usr/lib/xemacs-21.1.8/lisp/term/xterm.elc is apparently wrong - it
>   defines [find] instead of [home] and [select] instead of [end].

> Rodrigo gives a solution which i repeat here, but i solve the Delete key
> situation in a different way (as i have Del key issues in X with SUN
> machines):

>   (if window-system
>       (normal-erase-is-backspace-mode 1)
>     (normal-erase-is-backspace-mode 0))

>   (defun xterm-setup-hook ()
>     (define-key function-key-map "\e[1~" [home])
>     (define-key function-key-map "\e[4~" [end]))
>   (setq term-setup-hook 'xterm-setup-hook)

> is this a bug, or is it intented behaviour?

> cheers,
> Sam

-- 
Thomas E. Dickey <dickey@radix.net> <dickey@herndon4.his.com>
http://dickey.his.com
ftp://dickey.his.com


reply via email to

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