Skip to content

Commit

Permalink
Hardcode Escape-sequences for cursor keys
Browse files Browse the repository at this point in the history
Makes them usable in rxvt.
  • Loading branch information
Jenz Guenther authored and mptre committed Feb 11, 2018
1 parent 8008d1e commit 4fec5f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pick.c
Expand Up @@ -950,17 +950,21 @@ get_key(const char **key)
KEY(HOME, "\033<"),
CAP(LEFT, "kcub1"),
KEY(LEFT, "\002"),
KEY(LEFT, "\033OD"),
CAP(LINE_DOWN, "kcud1"),
KEY(LINE_DOWN, "\016"),
KEY(LINE_DOWN, "\033OB"),
CAP(LINE_UP, "kcuu1"),
KEY(LINE_UP, "\020"),
KEY(LINE_UP, "\033OA"),
CAP(PAGE_DOWN, "knp"),
KEY(PAGE_DOWN, "\026"),
KEY(PAGE_DOWN, "\033 "),
CAP(PAGE_UP, "kpp"),
KEY(PAGE_UP, "\033v"),
CAP(RIGHT, "kcuf1"),
KEY(RIGHT, "\006"),
KEY(RIGHT, "\033OC"),
KEY(UNKNOWN, NULL),
};
static unsigned char buf[8];
Expand Down

0 comments on commit 4fec5f6

Please sign in to comment.