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

ascii-chat Client Display Management Interface More...

Go to the source code of this file.

Typedefs

typedef struct session_display_ctx session_display_ctx_t
 

Functions

void display_set_context (session_display_ctx_t *display_ctx)
 Set the display context created by session_client_like framework.
 
int display_init ()
 Initialize what is necessary to display ascii frames.
 
bool display_has_tty ()
 Check if display has TTY capability.
 
void display_full_reset ()
 Perform full display reset.
 
void display_reset_for_new_connection ()
 Reset display state for new connection.
 
void display_disable_logging_for_first_frame ()
 Disable terminal logging for first frame.
 
void display_render_frame (const char *frame_data)
 Render ASCII frame to display.
 
void display_cleanup ()
 Cleanup display subsystem.
 

Variables

tty_info_t g_tty_info
 

Detailed Description

ascii-chat Client Display Management Interface

Defines the display subsystem interface for terminal rendering, TTY management, frame output operations, and terminal capability detection.

The display subsystem handles all interactions with the terminal:

  • Terminal capability detection (color depth, Unicode, half-blocks)
  • TTY control (raw mode, terminal reset)
  • ASCII frame rendering to stdout
  • Terminal logging suppression during rendering
  • Clean terminal restoration on shutdown
Author
Zachary Fogg me@zf.nosp@m.o.gg
Date
2025
See also
topic_client_display "Terminal Display Architecture"

Definition in file src/client/display.h.

Typedef Documentation

◆ session_display_ctx_t

Definition at line 28 of file src/client/display.h.

Variable Documentation

◆ g_tty_info

tty_info_t g_tty_info
extern