[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: arrow keys in the console
From: |
Pascal Bourguignon |
Subject: |
Re: arrow keys in the console |
Date: |
Fri, 18 May 2007 09:25:19 +0200 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/22.0.99 (gnu/linux) |
Tyler Smith <tyler.smith@mail.mcgill.ca> writes:
> Hi,
>
> I'm having some issues with the arrow keys in the console, or when
> running emacs -nw under X. If I use any of the arrow keys the cursor
> moves up one paragraph and adds a letter to the screen. It's a
> different letter for each key. I thought I might have something in X
> or the console screwed up, but the arrows seem to work fine in mutt,
> the command line, slrn etc. How do I fix this for emacs?
>
> Here's the quoted output of up, down, right, left, pageup, and
> pagedown, if that helps:
>
> [A[B[C[D[5~[6~
You can fix it by setting the right value for the TERM environment variable.
What terminal emulator or what kind of console do you use?
For example, I use xterm, so I write:
TERM=xterm ; export TERM
in my ~/.bashrc file.
Otherwise, you can rebind the commands dynamically:
M-x global-set-key RET <up-arrow> RET previous-line RET
M-x global-set-key RET <down-arrow> RET next-line RET
M-x global-set-key RET <right-arrow> RET forward-char RET
M-x global-set-key RET <left-arrow> RET backward-char RET
etc...
--
__Pascal Bourguignon__ http://www.informatimago.com/
NOTE: The most fundamental particles in this product are held
together by a "gluing" force about which little is currently known
and whose adhesive power can therefore not be permanently
guaranteed.
- arrow keys in the console, Tyler Smith, 2007/05/17
- Re: arrow keys in the console,
Pascal Bourguignon <=
- Re: arrow keys in the console, Tyler Smith, 2007/05/18
- Re: arrow keys in the console, poppyer, 2007/05/18
- Re: arrow keys in the console, Peter Dyballa, 2007/05/18
- Re: arrow keys in the console, Tyler Smith, 2007/05/18
- Message not available
- Re: arrow keys in the console, Tim X, 2007/05/18
- Re: arrow keys in the console, Tyler Smith, 2007/05/18
- Re: arrow keys in the console, Tim X, 2007/05/19
- Re: arrow keys in the console, Tim X, 2007/05/18
- Message not available
- Re: arrow keys in the console, Tim X, 2007/05/18
- Re: arrow keys in the console, Tyler Smith, 2007/05/18