From 5907c786fa616532ce2107bb497d9b7f2f6ab584 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 9 Apr 2021 19:41:17 +0200 Subject: Add flags for some incompatible input MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- interactive-test.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'interactive-test.c') 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"); -- cgit v1.2.3-70-g09d2