[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug in xterm -nw mode?
From: |
Sam Halliday |
Subject: |
bug in xterm -nw mode? |
Date: |
Wed, 16 Jul 2003 00:44:10 +0100 |
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
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
- bug in xterm -nw mode?,
Sam Halliday <=
- Re: bug in xterm -nw mode?, Glenn Morris, 2003/07/16
- Re: bug in xterm -nw mode?, Sam Halliday, 2003/07/16
- Re: bug in xterm -nw mode?, Glenn Morris, 2003/07/16
- Re: bug in xterm -nw mode?, Sam Halliday, 2003/07/16
- Re: bug in xterm -nw mode?, Glenn Morris, 2003/07/17
- Re: bug in xterm -nw mode?, Sam Halliday, 2003/07/17
- Re: bug in xterm -nw mode?, Glenn Morris, 2003/07/17
- Re: bug in xterm -nw mode?, Sam Halliday, 2003/07/17
- Re: bug in xterm -nw mode?, Thomas Dickey, 2003/07/17
- Re: bug in xterm -nw mode?, Sam Halliday, 2003/07/17