ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
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.

Data Structures

struct  update_child_result_t

Macros

#define TUI_UPDATE_BANNER_CLIPPED_BUFFER_SIZE   1024
#define TUI_UPDATE_BANNER_HEADING_BUFFER_SIZE   160
#define TUI_UPDATE_BANNER_INSTALLED_BUFFER_SIZE   160
#define TUI_UPDATE_BANNER_LATEST_BUFFER_SIZE   160
#define TUI_UPDATE_BANNER_INSTALLED_VERSION_BUFFER_SIZE   128
#define TUI_UPDATE_BANNER_COMMAND_BUFFER_SIZE   512
#define TUI_UPDATE_BANNER_INSTRUCTIONS_BUFFER_SIZE   128
#define TUI_UPDATE_BANNER_DOMAIN_LINK_BUFFER_SIZE   128
#define TUI_UPDATE_BANNER_STYLED_INSTRUCTIONS_BUFFER_SIZE   256
#define TUI_UPDATE_BANNER_INSTRUCTIONS_EXTENDED_BUFFER_SIZE   256
#define TUI_UPDATE_BANNER_OUTPUT_BUFFER_SIZE   2048
#define TUI_UPDATE_BANNER_NOTIFICATION_BUFFER_SIZE   1024

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.
bool update_banner_install_update (void)
void update_banner_start_check (void)
 Start the background update check thread.
void update_banner_toggle_overlay (void)
bool update_banner_is_checking (void)
bool update_banner_is_overlay_open (void)
bool update_banner_handle_key (int key)
void update_banner_wait_for_check (void)
 Wait for the background update check thread to finish.
void update_banner_cancel_check (void)

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

◆ TUI_UPDATE_BANNER_CLIPPED_BUFFER_SIZE

#define TUI_UPDATE_BANNER_CLIPPED_BUFFER_SIZE   1024

Definition at line 3 of file update_banner.c.

◆ TUI_UPDATE_BANNER_COMMAND_BUFFER_SIZE

#define TUI_UPDATE_BANNER_COMMAND_BUFFER_SIZE   512

Definition at line 8 of file update_banner.c.

◆ TUI_UPDATE_BANNER_DOMAIN_LINK_BUFFER_SIZE

#define TUI_UPDATE_BANNER_DOMAIN_LINK_BUFFER_SIZE   128

Definition at line 10 of file update_banner.c.

Referenced by update_banner_print_instructions().

◆ TUI_UPDATE_BANNER_HEADING_BUFFER_SIZE

#define TUI_UPDATE_BANNER_HEADING_BUFFER_SIZE   160

Definition at line 4 of file update_banner.c.

◆ TUI_UPDATE_BANNER_INSTALLED_BUFFER_SIZE

#define TUI_UPDATE_BANNER_INSTALLED_BUFFER_SIZE   160

Definition at line 5 of file update_banner.c.

◆ TUI_UPDATE_BANNER_INSTALLED_VERSION_BUFFER_SIZE

#define TUI_UPDATE_BANNER_INSTALLED_VERSION_BUFFER_SIZE   128

Definition at line 7 of file update_banner.c.

◆ TUI_UPDATE_BANNER_INSTRUCTIONS_BUFFER_SIZE

#define TUI_UPDATE_BANNER_INSTRUCTIONS_BUFFER_SIZE   128

Definition at line 9 of file update_banner.c.

◆ TUI_UPDATE_BANNER_INSTRUCTIONS_EXTENDED_BUFFER_SIZE

#define TUI_UPDATE_BANNER_INSTRUCTIONS_EXTENDED_BUFFER_SIZE   256

Definition at line 12 of file update_banner.c.

Referenced by update_banner_print_instructions().

◆ TUI_UPDATE_BANNER_LATEST_BUFFER_SIZE

#define TUI_UPDATE_BANNER_LATEST_BUFFER_SIZE   160

Definition at line 6 of file update_banner.c.

◆ TUI_UPDATE_BANNER_NOTIFICATION_BUFFER_SIZE

#define TUI_UPDATE_BANNER_NOTIFICATION_BUFFER_SIZE   1024

Definition at line 14 of file update_banner.c.

◆ TUI_UPDATE_BANNER_OUTPUT_BUFFER_SIZE

#define TUI_UPDATE_BANNER_OUTPUT_BUFFER_SIZE   2048

Definition at line 13 of file update_banner.c.

Referenced by update_banner_print_instructions().

◆ TUI_UPDATE_BANNER_STYLED_INSTRUCTIONS_BUFFER_SIZE

#define TUI_UPDATE_BANNER_STYLED_INSTRUCTIONS_BUFFER_SIZE   256

Definition at line 11 of file update_banner.c.