ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
terminal_capabilities_t Struct Reference

Complete terminal capabilities structure. More...

#include <lib/platform/terminal.h>

Data Fields

terminal_color_mode_t color_level
 Detected color support level (terminal_color_mode_t)
 
uint32_t capabilities
 Capability flags bitmask (terminal_capability_flags_t)
 
uint32_t color_count
 Maximum number of colors (16, 256, or 16777216)
 
bool utf8_support
 True if terminal supports UTF-8 encoding.
 
bool detection_reliable
 True if detection is confident (reliable detection)
 
render_mode_t render_mode
 Preferred rendering mode (render_mode_t)
 
char term_type [64]
 $TERM environment variable value (for debugging)
 
char colorterm [64]
 $COLORTERM environment variable value (for debugging)
 
bool wants_background
 True if background colors are preferred.
 
int palette_type
 Palette type enum value (palette_type_t)
 
char palette_custom [64]
 Custom palette characters (if palette_type == PALETTE_CUSTOM)
 
uint8_t desired_fps
 Client's desired frame rate (1-144 FPS)
 

Detailed Description

Complete terminal capabilities structure.

Comprehensive terminal capabilities structure containing all detected terminal features, color support, encoding capabilities, and rendering preferences. Used for optimal ASCII art rendering configuration.

Definition at line 485 of file terminal.h.

Field Documentation

◆ capabilities

uint32_t terminal_capabilities_t::capabilities

◆ color_count

uint32_t terminal_capabilities_t::color_count

Maximum number of colors (16, 256, or 16777216)

Definition at line 491 of file terminal.h.

Referenced by handle_client_capabilities_packet(), tcp_client_send_terminal_capabilities(), and threaded_send_terminal_size_with_auto_detect().

◆ color_level

◆ colorterm

char terminal_capabilities_t::colorterm[64]

$COLORTERM environment variable value (for debugging)

Definition at line 501 of file terminal.h.

Referenced by action_show_capabilities(), handle_client_capabilities_packet(), tcp_client_send_terminal_capabilities(), and threaded_send_terminal_size_with_auto_detect().

◆ desired_fps

uint8_t terminal_capabilities_t::desired_fps

◆ detection_reliable

bool terminal_capabilities_t::detection_reliable

◆ palette_custom

char terminal_capabilities_t::palette_custom[64]

Custom palette characters (if palette_type == PALETTE_CUSTOM)

Definition at line 507 of file terminal.h.

Referenced by handle_client_capabilities_packet().

◆ palette_type

int terminal_capabilities_t::palette_type

Palette type enum value (palette_type_t)

Definition at line 505 of file terminal.h.

Referenced by handle_client_capabilities_packet().

◆ render_mode

◆ term_type

char terminal_capabilities_t::term_type[64]

$TERM environment variable value (for debugging)

Definition at line 499 of file terminal.h.

Referenced by action_show_capabilities(), handle_client_capabilities_packet(), tcp_client_send_terminal_capabilities(), and threaded_send_terminal_size_with_auto_detect().

◆ utf8_support

bool terminal_capabilities_t::utf8_support

◆ wants_background

bool terminal_capabilities_t::wants_background

True if background colors are preferred.

Definition at line 503 of file terminal.h.

Referenced by handle_client_capabilities_packet().


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