v0.0.56 - Fix connection display scroll issue: use full screen clear instead of tui_clear_continuous for modal connections view

This commit is contained in:
Laan Tungir
2026-07-20 10:11:09 -04:00
parent 2af12868e2
commit 96ab9741ef

View File

@@ -759,8 +759,8 @@ int socket_name_random(char *out, size_t out_len);
/* Version information (auto-updated by build/version tooling) */ /* Version information (auto-updated by build/version tooling) */
#define NSIGNER_VERSION_MAJOR 0 #define NSIGNER_VERSION_MAJOR 0
#define NSIGNER_VERSION_MINOR 0 #define NSIGNER_VERSION_MINOR 0
#define NSIGNER_VERSION_PATCH 55 #define NSIGNER_VERSION_PATCH 56
#define NSIGNER_VERSION "v0.0.55" #define NSIGNER_VERSION "v0.0.56"
/* NSIGNER_HEADERLESS_DECLS_END */ /* NSIGNER_HEADERLESS_DECLS_END */
@@ -1500,7 +1500,14 @@ static void render_connections(const role_table_t *role_table,
char status_buf[256]; char status_buf[256];
int i; 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_render_top_frame(&frame, size.width);
tui_print(""); tui_print("");