ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
session_display_ctx Struct Reference

Internal session display context structure. More...

Data Fields

tty_info_t tty_info
 TTY information (file descriptor, path, ownership)
 
bool has_tty
 True if we have a valid TTY for interactive output.
 
terminal_capabilities_t caps
 Detected terminal capabilities.
 
char palette_chars [256]
 Palette character string for rendering.
 
size_t palette_len
 Number of characters in palette.
 
char luminance_palette [256]
 Luminance-to-character mapping table (256 entries)
 
palette_type_t palette_type
 Configured palette type.
 
bool snapshot_mode
 Snapshot mode enabled.
 
atomic_t first_frame
 First frame flag for logging control.
 
bool initialized
 Context is fully initialized.
 
bool audio_playback_enabled
 Audio playback is enabled.
 
void * audio_ctx
 Audio context for playback (borrowed, not owned)
 
atomic_t keyboard_help_active
 Keyboard help active flag (toggled with '?') - atomic for thread-safe access.
 
digital_rain_t * digital_rain
 Digital rain effect context (NULL if disabled)
 
uint64_t last_frame_time_ns
 Last frame timestamp for digital rain delta time calculation.
 
fps_counter_t * fps_counter
 FPS counter for measuring output throughput.
 
uint32_t render_fps
 Video FPS for render-file encoding.
 
render_file_ctx_t * render_file
 Render-to-file context (NULL if disabled)
 
terminal_fd_reader_t * stdin_reader
 Stdin frame reader for ASCII-to-video rendering (borrowed ref, not owned)
 

Detailed Description

Internal session display context structure.

Contains all state for terminal display including TTY info, capabilities, palette, and rendering state.

Definition at line 53 of file src/common/session/display.c.

Field Documentation

◆ audio_ctx

void* session_display_ctx::audio_ctx

Audio context for playback (borrowed, not owned)

Definition at line 88 of file src/common/session/display.c.

Referenced by session_display_create(), and session_display_write_audio().

◆ audio_playback_enabled

bool session_display_ctx::audio_playback_enabled

Audio playback is enabled.

Definition at line 85 of file src/common/session/display.c.

Referenced by session_display_create(), session_display_has_audio_playback(), and session_display_write_audio().

◆ caps

terminal_capabilities_t session_display_ctx::caps

◆ digital_rain

digital_rain_t* session_display_ctx::digital_rain

Digital rain effect context (NULL if disabled)

Definition at line 94 of file src/common/session/display.c.

Referenced by session_display_convert_to_ascii(), session_display_create(), session_display_destroy(), and session_display_write_ascii().

◆ first_frame

atomic_t session_display_ctx::first_frame

◆ fps_counter

fps_counter_t* session_display_ctx::fps_counter

FPS counter for measuring output throughput.

Definition at line 100 of file src/common/session/display.c.

Referenced by session_display_create(), session_display_destroy(), session_display_render_fps_overlay(), and session_display_write_ascii().

◆ has_tty

◆ initialized

◆ keyboard_help_active

atomic_t session_display_ctx::keyboard_help_active

Keyboard help active flag (toggled with '?') - atomic for thread-safe access.

Definition at line 91 of file src/common/session/display.c.

Referenced by keyboard_help_is_active(), keyboard_help_is_active_global(), keyboard_help_toggle(), session_display_create(), and session_display_write_ascii().

◆ last_frame_time_ns

uint64_t session_display_ctx::last_frame_time_ns

Last frame timestamp for digital rain delta time calculation.

Definition at line 97 of file src/common/session/display.c.

Referenced by session_display_convert_to_ascii(), session_display_create(), and session_display_write_ascii().

◆ luminance_palette

char session_display_ctx::luminance_palette[256]

Luminance-to-character mapping table (256 entries)

Definition at line 70 of file src/common/session/display.c.

Referenced by session_display_create(), and session_display_get_luminance_palette().

◆ palette_chars

char session_display_ctx::palette_chars[256]

Palette character string for rendering.

Definition at line 64 of file src/common/session/display.c.

Referenced by session_display_convert_to_ascii(), session_display_create(), and session_display_get_palette_chars().

◆ palette_len

size_t session_display_ctx::palette_len

Number of characters in palette.

Definition at line 67 of file src/common/session/display.c.

Referenced by session_display_create(), and session_display_get_palette_len().

◆ palette_type

palette_type_t session_display_ctx::palette_type

Configured palette type.

Definition at line 73 of file src/common/session/display.c.

Referenced by session_display_create().

◆ render_file

◆ render_fps

uint32_t session_display_ctx::render_fps

◆ snapshot_mode

bool session_display_ctx::snapshot_mode

◆ stdin_reader

terminal_fd_reader_t* session_display_ctx::stdin_reader

Stdin frame reader for ASCII-to-video rendering (borrowed ref, not owned)

Definition at line 109 of file src/common/session/display.c.

Referenced by session_display_get_stdin_reader(), and session_display_set_stdin_reader().

◆ tty_info


The documentation for this struct was generated from the following file: