aboutsummaryrefslogtreecommitdiffstats
path: root/interactive-test.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-09 19:41:17 +0200
committerMattias Andrée <maandree@kth.se>2021-04-09 19:41:17 +0200
commit5907c786fa616532ce2107bb497d9b7f2f6ab584 (patch)
treee17681b24083fcf50cf3d3ed355c76c58ebf6dcd /interactive-test.c
parentUpdate todo (diff)
downloadlibterminput-5907c786fa616532ce2107bb497d9b7f2f6ab584.tar.gz
libterminput-5907c786fa616532ce2107bb497d9b7f2f6ab584.tar.bz2
libterminput-5907c786fa616532ce2107bb497d9b7f2f6ab584.tar.xz
Add flags for some incompatible input
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'interactive-test.c')
-rw-r--r--interactive-test.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/interactive-test.c b/interactive-test.c
index 6e21cb3..e38b638 100644
--- a/interactive-test.c
+++ b/interactive-test.c
@@ -22,6 +22,18 @@ main(void)
fprintf(stderr, "LIBTERMINPUT_DECSET_1005 set\n");
libterminput_set_flags(&ctx, LIBTERMINPUT_DECSET_1005);
}
+ if (getenv("TEST_LIBTERMINPUT_MACRO_ON_CSI_M")) {
+ fprintf(stderr, "LIBTERMINPUT_MACRO_ON_CSI_M set\n");
+ libterminput_set_flags(&ctx, LIBTERMINPUT_MACRO_ON_CSI_M);
+ }
+ if (getenv("TEST_LIBTERMINPUT_PAUSE_ON_CSI_P")) {
+ fprintf(stderr, "LIBTERMINPUT_PAUSE_ON_CSI_P set\n");
+ libterminput_set_flags(&ctx, LIBTERMINPUT_PAUSE_ON_CSI_P);
+ }
+ if (getenv("TEST_LIBTERMINPUT_INS_ON_CSI_AT")) {
+ fprintf(stderr, "LIBTERMINPUT_INS_ON_CSI_AT set\n");
+ libterminput_set_flags(&ctx, LIBTERMINPUT_INS_ON_CSI_AT);
+ }
if (tcgetattr(STDERR_FILENO, &stty)) {
perror("tcgetattr STDERR_FILENO");