diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-15 10:31:54 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-15 10:31:54 +0100 |
commit | 5ee4d991b6a325848083017665ac3d3ace2d1fa1 (patch) | |
tree | 68758e3a785e9776087c4cadf187a201919a573b /tmux.h | |
parent | c4d8100b2fd220d358481db419221ee1454d3cad (diff) | |
download | rtmux-5ee4d991b6a325848083017665ac3d3ace2d1fa1.tar.gz rtmux-5ee4d991b6a325848083017665ac3d3ace2d1fa1.tar.bz2 rtmux-5ee4d991b6a325848083017665ac3d3ace2d1fa1.zip |
xterm-keys has been on by default for 5 years and all other modern terminals
use these key sequences by default. Merge the code into the main tty and input
tree processing (convering the latter to use a tree rather than a table at the
same time) and make the option a no-op.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -125,6 +125,8 @@ struct winlink; #define KEYC_SHIFT 0x0400000000000ULL #define KEYC_XTERM 0x0800000000000ULL #define KEYC_LITERAL 0x1000000000000ULL +#define KEYC_KEYPAD 0x2000000000000ULL +#define KEYC_CURSOR 0x4000000000000ULL /* Available user keys. */ #define KEYC_NUSER 1000 @@ -2417,16 +2419,12 @@ void input_parse_screen(struct input_ctx *, struct screen *, screen_write_init_ctx_cb, void *, u_char *, size_t); /* input-key.c */ +void input_key_build(void); int input_key_pane(struct window_pane *, key_code, struct mouse_event *); -int input_key(struct window_pane *, struct screen *, struct bufferevent *, - key_code); +int input_key(struct screen *, struct bufferevent *, key_code); int input_key_get_mouse(struct screen *, struct mouse_event *, u_int, u_int, const char **, size_t *); -/* xterm-keys.c */ -char *xterm_keys_lookup(key_code); -int xterm_keys_find(const char *, size_t, size_t *, key_code *); - /* colour.c */ int colour_find_rgb(u_char, u_char, u_char); int colour_join_rgb(u_char, u_char, u_char); |