From: | Marc Culler |
Date: | 27 Aug 2000 at 17:39:49 |
Subject: | AMIOPEN: Arrow keys |
Does anyone know how to make the console's keycode cooker do something
reasonable with the arrow keys, like send \eA, \eB, \eC and \eD for
example?
As far I can tell the default behavior when the up arrow key is pressed
is:
Put \356 \200 \241 on the stdin stream.
Set the cooker into "convert NL to CR" mode
Moreover, upon receiving CR, the string ^01a8406e is echoed to the
display and the "NL->CR" mode is cancelled. (I presume that the hex
number 01a8406e is somehow related to the 32-bit keycode that the raw
keyboard device would send.)
I am sure that this behavior is exactly the default behavior that any
intelligent programmer would demand and expect. I, on the other hand,
am just trying to get GNU readline to work. And it sure would be
easier if I could just receive the usual VT??? escape sequences when
the arrow keys are pressed.
- Marc
Subscribe/Unsubscribe: open-request@amiga.com
Amiga FAQ: http://www.amiga.com/faq.html