ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
update_banner.c File Reference

Update available prompt screen implementation. More...

Go to the source code of this file.

Macros

#define APPEND(fmt, ...)
 

Functions

void update_banner_set_result (const update_check_result_t *result)
 Store the update check result (thread-safe)
 
bool update_banner_has_update (void)
 Check if an update is available (thread-safe)
 
bool update_banner_show_prompt (session_display_ctx_t *ctx)
 Show the update prompt screen and wait for user input.
 
void update_banner_print_instructions (void)
 Print upgrade instructions to stdout and prepare for clean exit.
 
void update_banner_start_check (void)
 Start the background update check thread.
 
void update_banner_wait_for_check (void)
 Wait for the background update check thread to finish.
 

Detailed Description

Update available prompt screen implementation.

Renders a centered box-drawing prompt after splash ends, showing version info and upgrade instructions. Blocks for user input (Y/Enter or N/Esc).

Definition in file update_banner.c.

Macro Definition Documentation

◆ APPEND

#define APPEND (   fmt,
  ... 
)
Value:
do { \
int _w = snprintf(buffer + buf_pos, BUF_SIZE - buf_pos, fmt, ##__VA_ARGS__); \
if (_w > 0) { \
buf_pos += (size_t)_w; \
} \
} while (0)