aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-02-01 22:03:28 +0100
committerMattias Andrée <m@maandree.se>2025-02-01 22:03:28 +0100
commit54352f83aa9d9188cdd9bf88af13085e581214fb (patch)
treee357ffb704ae563e66307a4cfaab1f42641ea134
parentm misc + add documentation to the header file (diff)
downloadlibterminput-54352f83aa9d9188cdd9bf88af13085e581214fb.tar.gz
libterminput-54352f83aa9d9188cdd9bf88af13085e581214fb.tar.bz2
libterminput-54352f83aa9d9188cdd9bf88af13085e581214fb.tar.xz
m
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r--interactive-test.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/interactive-test.c b/interactive-test.c
index 2180de8..5e07685 100644
--- a/interactive-test.c
+++ b/interactive-test.c
@@ -184,6 +184,16 @@ main(void)
} else {
printf("other\n");
}
+#if 0
+ printf("(state):\n"
+ "\tinited=%i, mods=%#x, flags=%#x, bracketed_paste=%i, mouse_tracking=%i, meta=%i,\n"
+ "\tn=%i, stored_head=%zu, stored_tail=%zu, paused=%i, npartial=%i, partial=\"%.*s\",\n"
+ "\tkey=\"%s\", stored=\"%.*s\"\n",
+ (int)ctx.inited, (unsigned)ctx.mods, (unsigned)ctx.flags, (int)ctx.bracketed_paste,
+ (int)ctx.mouse_tracking, (int)ctx.meta, (int)ctx.n, ctx.stored_head, ctx.stored_tail,
+ (int)ctx.paused, (int)ctx.npartial, (int)ctx.npartial, ctx.partial, ctx.key,
+ (int)(ctx.stored_tail - ctx.stored_head), &ctx.stored[ctx.stored_head]);
+#endif
}
if (r < 0)