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

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

Re: arrow keys in the console


From: Peter Dyballa
Subject: Re: arrow keys in the console
Date: Sat, 19 May 2007 16:37:33 +0200


Am 19.05.2007 um 05:00 schrieb Tyler Smith:

tset - -Q or such can determine the right value. It also would work
to set it xterm or xterm-color. This kind of terminal is supported
by GNU Emacs. Look into lisp/term directory!

--
NO! This will not work correctly for a GNU Linux console. The TERM
setting of 'Linux', is *correct* for the console - do not change
it. The problem is with keymaps. Load the correct keymap and the
problem is solved.


Well, you're right. Setting TERM=xterm fixed the arrow keys, but
page-up and page-down still act funny.

Open ~/.emacs and then work on this loop:

        M-x global-set-key RET <press the key> RET <function binding> RET
C-x Esc Esc C-a C-k C-g ; repeat last command, beginning, kill line, quit
        C-x b .emacs RET
        C-y

Finally save ~/.emacs.

The cursor movement functions are previous-line, next-line, backward- char, and forward-char.


Since there is a file /usr/local/share/emacs/22.1.50/lisp/term/ linux.el I wonder whether it's worth to write a bug report about the behaviour of your GNU Emacs in that "linux" terminal. It would be worth to mention the actual key bindings of your system!

--
Greetings

  Pete

When confronted with actual numbers, a mathematician is at a loss.
                                         (Steffen Hokland)






reply via email to

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