507 char palette_custom[64];
718typedef void (*terminal_resize_callback_t)(
int cols,
int rows);
738int terminal_start_resize_detection(terminal_resize_callback_t callback);
751void terminal_stop_resize_detection(
void);
asciichat_error_t
Error and exit codes - unified status values (0-255)
Complete terminal capabilities structure.
int palette_type
Palette type enum value (palette_type_t)
terminal_color_mode_t color_level
Detected color support level (terminal_color_mode_t)
uint8_t desired_fps
Client's desired frame rate (1-144 FPS)
render_mode_t render_mode
Preferred rendering mode (render_mode_t)
bool utf8_support
True if terminal supports UTF-8 encoding.
uint32_t capabilities
Capability flags bitmask (terminal_capability_flags_t)
uint32_t color_count
Maximum number of colors (16, 256, or 16777216)
bool detection_reliable
True if detection is confident (reliable detection)
bool wants_background
True if background colors are preferred.
int cols
Number of columns (width) in terminal.
int rows
Number of rows (height) in terminal.
TTY detection and management structure.
bool owns_fd
True if we opened the FD and should close it, false otherwise.
int fd
File descriptor for TTY access.
const char * path
Path to TTY device (e.g., "/dev/tty", "CON", etc.)