ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
splash.h File Reference

Intro and status screen display for ascii-chat with animated rainbow effects. More...

Go to the source code of this file.

Typedefs

typedef struct session_display_ctx session_display_ctx_t
 

Functions

void splash_log_init (void)
 Initialize log buffer for splash animation.
 
void splash_log_destroy (void)
 Destroy splash log buffer.
 
void splash_log_clear (void)
 Clear splash log buffer.
 
void splash_log_append (const char *message)
 Append message to splash log buffer.
 
int splash_intro_start (session_display_ctx_t *ctx)
 Start animated intro screen with rainbow ASCII art (non-blocking)
 
int splash_intro_done (void)
 Signal that intro splash should end (first frame ready to render)
 
void splash_wait_for_animation (void)
 Wait for splash animation thread to fully exit.
 
bool splash_should_display (bool is_intro)
 Check if splash screen should display.
 
void splash_restore_stderr (void)
 Restore stderr after splash animation completes.
 
void splash_set_update_notification (const char *notification)
 Set update notification to display on splash/status screens.
 
void splash_clear_display_context (void)
 Clear the cached display context to prevent use-after-free.
 
void splash_notify_first_frame (void)
 Notify splash that the first frame has been rendered.
 
bool splash_is_running (void)
 Check if splash screen animation is currently running.
 

Detailed Description

Intro and status screen display for ascii-chat with animated rainbow effects.

Provides splash screen functionality for displaying:

  • Intro screen with animated rainbow ASCII art (client/mirror/discovery modes)
  • Status screen with server/discovery-service information

The splash screen displays while initialization happens in the background:

  • For clients/mirror: displays during network connection & frame preparation
  • For servers: displays during binding and initialization
Author
Zachary Fogg me@zf.nosp@m.o.gg
Date
February 2026

Definition in file splash.h.

Typedef Documentation

◆ session_display_ctx_t

Definition at line 24 of file splash.h.