Opened 13 years ago
Last modified 7 years ago
#8482 assigned bug
ANSI arrows not working
Reported by: | arfonzo | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Applications/Terminal | Version: | R1/Development |
Keywords: | ANSI | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description (last modified by )
Arrows not working when using ANSI terminal. It sends a "OA" for up, "OB" for down, rather than "[A", etc. For example, when connecting to an ANSI BBS, the full screen editor would send these keys and act strangely, rather than move the cursor.
I have tested the following changes, which seem to work for me:
--- ../terminal/VTkeymap.h 2012-04-18 16:15:37.931921920 +0100 +++ VTkeymap.h 2012-04-19 17:30:45.776208384 +0100 @@ -63,11 +63,10 @@ #define PAGE_UP_KEY 0x21 #define PAGE_DOWN_KEY 0x36 - -#define LEFT_ARROW_KEY_CODE "\033OD" -#define RIGHT_ARROW_KEY_CODE "\033OC" -#define UP_ARROW_KEY_CODE "\033OA" -#define DOWN_ARROW_KEY_CODE "\033OB" +#define LEFT_ARROW_KEY_CODE "\033[D" +#define RIGHT_ARROW_KEY_CODE "\033[C" +#define UP_ARROW_KEY_CODE "\033[A" +#define DOWN_ARROW_KEY_CODE "\033[B" #define CTRL_LEFT_ARROW_KEY_CODE "\033O5D" #define CTRL_RIGHT_ARROW_KEY_CODE "\033O5C"
Attachments (1)
Change History (8)
by , 13 years ago
Attachment: | VTkeymap.h.patch added |
---|
comment:1 by , 13 years ago
patch: | 0 → 1 |
---|
comment:2 by , 13 years ago
Description: | modified (diff) |
---|---|
Version: | R1/alpha3 → R1/Development |
comment:3 by , 13 years ago
comment:4 by , 12 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:5 by , 9 years ago
Owner: | changed from | to
---|
A pair of tickets that are left since I was fond of Terminal improvements. I'm not sure I can finalize them in the nearest future.
comment:7 by , 7 years ago
patch: | 1 → 0 |
---|
Note:
See TracTickets
for help on using tickets.
The patch included does not work by itself--while it fixes the ANSI expected behavior (such as calling BBSes), the local shell's arrows do not work.
For example, using 'less filename', and up/down no longer shifts the view up/down a row.