[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: translating numpad keys in linux terminal
From: |
Pascal J. Bourguignon |
Subject: |
Re: translating numpad keys in linux terminal |
Date: |
Wed, 01 Apr 2015 16:33:48 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Michael Heerdegen <michael_heerdegen@web.de> writes:
> Tim Johnson <tim@akwebsoft.com> writes:
>
>> Is there a way to read the other keys with "kp-" as in gui emacs?
>
> I don't think so. If you have a look at the lossage (C-h l), you see
> what events Emacs receives before doing any key translations.
>
> For the up and kp-up keys for example I see the same events coming from
> the terminal: ESC O A. Thus Emacs can't distinguish the two.
>
> At least that's what happens here. Maybe it is different when using
> a different terminal or different terminal settings.
It all depends if you can configure your terminal (or terminal
emulator), to send different code sequences to distinguish 1 from kp-1.
If you use a terminal emulator, they you might be able to patch it more
easily than if you use a physical terminal (which assumedly is
improbable).
--
__Pascal Bourguignon__ http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk