diff options
author | Mattias Andrée <maandree@kth.se> | 2021-04-09 20:02:37 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-04-09 20:02:37 +0200 |
commit | f86c044e3e42669154e3aad79a3b0a1295128328 (patch) | |
tree | 25b3238f94186a442e55e3913a6fac4631d72cef /interactive-test.c | |
parent | Add flags for some incompatible input (diff) | |
download | libterminput-f86c044e3e42669154e3aad79a3b0a1295128328.tar.gz libterminput-f86c044e3e42669154e3aad79a3b0a1295128328.tar.bz2 libterminput-f86c044e3e42669154e3aad79a3b0a1295128328.tar.xz |
Add LIBTERMINPUT_SEPARATE_BACKTAB and LIBTERMINPUT_ESC_ON_BLOCK
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'interactive-test.c')
-rw-r--r-- | interactive-test.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/interactive-test.c b/interactive-test.c index e38b638..57bb20c 100644 --- a/interactive-test.c +++ b/interactive-test.c @@ -34,6 +34,14 @@ main(void) fprintf(stderr, "LIBTERMINPUT_INS_ON_CSI_AT set\n"); libterminput_set_flags(&ctx, LIBTERMINPUT_INS_ON_CSI_AT); } + if (getenv("TEST_LIBTERMINPUT_SEPARATE_BACKTAB")) { + fprintf(stderr, "LIBTERMINPUT_SEPARATE_BACKTAB set\n"); + libterminput_set_flags(&ctx, LIBTERMINPUT_SEPARATE_BACKTAB); + } + if (getenv("TEST_LIBTERMINPUT_ESC_ON_BLOCK")) { + fprintf(stderr, "LIBTERMINPUT_ESC_ON_BLOCK set\n"); + libterminput_set_flags(&ctx, LIBTERMINPUT_ESC_ON_BLOCK); + } if (tcgetattr(STDERR_FILENO, &stty)) { perror("tcgetattr STDERR_FILENO"); @@ -61,6 +69,7 @@ main(void) case LIBTERMINPUT_LEFT: printf("\t%s: %s\n", "key", "left"); break; case LIBTERMINPUT_BEGIN: printf("\t%s: %s\n", "key", "begin"); break; case LIBTERMINPUT_TAB: printf("\t%s: %s\n", "key", "tab"); break; + case LIBTERMINPUT_BACKTAB: printf("\t%s: %s\n", "key", "backtab"); break; case LIBTERMINPUT_F1: printf("\t%s: %s\n", "key", "f1"); break; case LIBTERMINPUT_F2: printf("\t%s: %s\n", "key", "f2"); break; case LIBTERMINPUT_F3: printf("\t%s: %s\n", "key", "f3"); break; |