From 54352f83aa9d9188cdd9bf88af13085e581214fb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 1 Feb 2025 22:03:28 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- interactive-test.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'interactive-test.c') 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) -- cgit v1.2.3-70-g09d2