diff options
author | Mattias Andrée <maandree@kth.se> | 2021-04-08 22:45:08 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-04-08 22:45:08 +0200 |
commit | d523a4017d7029d97f63fc0926f2a2249cc9c4de (patch) | |
tree | 72199a7c0727b53ec7fdf4011837763b68399a29 | |
parent | Add readme (diff) | |
download | libterminput-d523a4017d7029d97f63fc0926f2a2249cc9c4de.tar.gz libterminput-d523a4017d7029d97f63fc0926f2a2249cc9c4de.tar.bz2 libterminput-d523a4017d7029d97f63fc0926f2a2249cc9c4de.tar.xz |
Remove macro key as it conflicts with mouse tracking
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | interactive-test.c | 1 | ||||
-rw-r--r-- | libterminput.c | 1 | ||||
-rw-r--r-- | libterminput.h | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/interactive-test.c b/interactive-test.c index a1101e4..2da5ae8 100644 --- a/interactive-test.c +++ b/interactive-test.c @@ -41,7 +41,6 @@ main(void) case LIBTERMINPUT_DOWN: printf("\t%s: %s\n", "key", "down"); break; case LIBTERMINPUT_RIGHT: printf("\t%s: %s\n", "key", "right"); break; case LIBTERMINPUT_BEGIN: printf("\t%s: %s\n", "key", "begin"); break; - case LIBTERMINPUT_MACRO: printf("\t%s: %s\n", "key", "macro"); break; case LIBTERMINPUT_TAB: printf("\t%s: %s\n", "key", "tab"); break; case LIBTERMINPUT_F1: printf("\t%s: %s\n", "key", "f1"); break; case LIBTERMINPUT_F2: printf("\t%s: %s\n", "key", "f2"); break; diff --git a/libterminput.c b/libterminput.c index 8fb1fb6..2068aaf 100644 --- a/libterminput.c +++ b/libterminput.c @@ -184,7 +184,6 @@ parse_sequence(union libterminput_input *input, struct libterminput_state *ctx) case 'F': input->keypress.key = LIBTERMINPUT_END; break; case 'G': input->keypress.key = LIBTERMINPUT_BEGIN; break; case 'H': input->keypress.key = LIBTERMINPUT_HOME; break; - case 'M': input->keypress.key = LIBTERMINPUT_MACRO; break; case 'P': input->keypress.key = LIBTERMINPUT_F1; break; case 'Q': input->keypress.key = LIBTERMINPUT_F2; break; case 'R': input->keypress.key = LIBTERMINPUT_F3; break; diff --git a/libterminput.h b/libterminput.h index f2f0374..313fd72 100644 --- a/libterminput.h +++ b/libterminput.h @@ -18,7 +18,6 @@ enum libterminput_key { LIBTERMINPUT_RIGHT, LIBTERMINPUT_LEFT, LIBTERMINPUT_BEGIN, /* keypad 5 without numlock */ - LIBTERMINPUT_MACRO, LIBTERMINPUT_TAB, /* backtab if with shift */ LIBTERMINPUT_F1, LIBTERMINPUT_F2, |