ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
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_bool 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_bool help_screen_active
 Help screen 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.
 

Detailed Description

Internal session display context structure.

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

Definition at line 45 of file lib/session/display.c.

Field Documentation

◆ audio_ctx

void* session_display_ctx::audio_ctx

Audio context for playback (borrowed, not owned)

Definition at line 80 of file lib/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 77 of file lib/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

Detected terminal capabilities.

Definition at line 53 of file lib/session/display.c.

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

◆ digital_rain

digital_rain_t* session_display_ctx::digital_rain

Digital rain effect context (NULL if disabled)

Definition at line 86 of file lib/session/display.c.

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

◆ first_frame

atomic_bool session_display_ctx::first_frame

First frame flag for logging control.

Definition at line 71 of file lib/session/display.c.

Referenced by session_display_create(), and session_display_render_frame().

◆ has_tty

◆ help_screen_active

atomic_bool session_display_ctx::help_screen_active

Help screen active flag (toggled with '?') - atomic for thread-safe access.

Definition at line 83 of file lib/session/display.c.

Referenced by session_display_create(), session_display_is_help_active(), session_display_render_frame(), and session_display_toggle_help().

◆ initialized

◆ 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 89 of file lib/session/display.c.

Referenced by session_display_convert_to_ascii(), and session_display_create().

◆ luminance_palette

char session_display_ctx::luminance_palette[256]

Luminance-to-character mapping table (256 entries)

Definition at line 62 of file lib/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 56 of file lib/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 59 of file lib/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 65 of file lib/session/display.c.

Referenced by session_display_create().

◆ snapshot_mode

bool session_display_ctx::snapshot_mode

◆ tty_info


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