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:
13
src/main.c
13
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("");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user