From 96ab9741ef12a54f291426b2b2898586c9ab6d10 Mon Sep 17 00:00:00 2001 From: Laan Tungir Date: Mon, 20 Jul 2026 10:11:09 -0400 Subject: [PATCH] v0.0.56 - Fix connection display scroll issue: use full screen clear instead of tui_clear_continuous for modal connections view --- src/main.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index 4af6dae..48a88da 100644 --- a/src/main.c +++ b/src/main.c @@ -759,8 +759,8 @@ int socket_name_random(char *out, size_t out_len); /* Version information (auto-updated by build/version tooling) */ #define NSIGNER_VERSION_MAJOR 0 #define NSIGNER_VERSION_MINOR 0 -#define NSIGNER_VERSION_PATCH 55 -#define NSIGNER_VERSION "v0.0.55" +#define NSIGNER_VERSION_PATCH 56 +#define NSIGNER_VERSION "v0.0.56" /* NSIGNER_HEADERLESS_DECLS_END */ @@ -1500,7 +1500,14 @@ static void render_connections(const role_table_t *role_table, char status_buf[256]; int i; - tui_clear_continuous(size.height); + /* Use a full screen clear (not tui_clear_continuous) because the + * connections display is a modal view that may exceed the terminal + * height. tui_clear_continuous assumes the content fits within + * term_height lines; if it doesn't, the extra lines scroll past and + * the cursor-up can't reach them. A full clear + home cursor works + * regardless of content height. */ + printf("\033[2J\033[H"); + fflush(stdout); tui_render_top_frame(&frame, size.width); tui_print("");