|
ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
|
Terminal capabilities packet structure (Packet Type 5) More...
#include <lib/network/packet.h>
Data Fields | |
| uint32_t | capabilities |
| Terminal capabilities bitmask (TERM_CAP_* flags) | |
| uint32_t | color_level |
| Color level enum value (terminal_color_mode_t) | |
| uint32_t | color_count |
| Actual color count (16, 256, or 16777216) | |
| uint32_t | render_mode |
| Render mode enum value (foreground/background/half-block) | |
| uint16_t | width |
| Terminal width in characters. | |
| uint16_t | height |
| Terminal height in characters. | |
| char | term_type [32] |
| $TERM environment variable value (for debugging) | |
| char | colorterm [32] |
| $COLORTERM environment variable value (for debugging) | |
| uint8_t | detection_reliable |
| Detection reliability flag (1=reliable detection, 0=best guess) | |
| uint32_t | utf8_support |
| UTF-8 support flag (0=no UTF-8, 1=UTF-8 supported) | |
| uint32_t | 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) | |
| uint8_t | reserved [2] |
| Reserved bytes for alignment (must be zero) | |
Terminal capabilities packet structure (Packet Type 5)
Sent by client to server to report terminal capabilities, dimensions, color support, and rendering preferences for optimal frame delivery.