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

Terminal capabilities packet structure (Packet Type 5) More...

#include <include/ascii-chat/network/packet/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 color_filter
 Monochromatic color filter enum value (color_filter_t)
 
uint8_t wants_padding
 Whether client wants frame padding (1=padding enabled, 0=no padding for snapshot/piped modes)
 
uint32_t codec_capabilities_video
 Video codec capabilities bitmask (VIDEO_CODEC_CAP_*)
 
uint32_t codec_capabilities_audio
 Audio codec capabilities bitmask (AUDIO_CODEC_CAP_*)
 

Detailed Description

Terminal capabilities packet structure (Packet Type 5)

Sent by client to server to report terminal capabilities, dimensions, color support, rendering preferences, and supported codecs for optimal frame delivery.

Definition at line 1018 of file packet.h.

Field Documentation

◆ capabilities

uint32_t terminal_capabilities_packet_t::capabilities

Terminal capabilities bitmask (TERM_CAP_* flags)

Definition at line 1020 of file packet.h.

Referenced by handle_client_capabilities_packet(), and threaded_send_terminal_size_with_auto_detect().

◆ codec_capabilities_audio

uint32_t terminal_capabilities_packet_t::codec_capabilities_audio

Audio codec capabilities bitmask (AUDIO_CODEC_CAP_*)

Definition at line 1052 of file packet.h.

Referenced by handle_client_capabilities_packet(), and threaded_send_terminal_size_with_auto_detect().

◆ codec_capabilities_video

uint32_t terminal_capabilities_packet_t::codec_capabilities_video

Video codec capabilities bitmask (VIDEO_CODEC_CAP_*)

Definition at line 1050 of file packet.h.

Referenced by handle_client_capabilities_packet(), and threaded_send_terminal_size_with_auto_detect().

◆ color_count

uint32_t terminal_capabilities_packet_t::color_count

Actual color count (16, 256, or 16777216)

Definition at line 1024 of file packet.h.

Referenced by handle_client_capabilities_packet(), and threaded_send_terminal_size_with_auto_detect().

◆ color_filter

uint8_t terminal_capabilities_packet_t::color_filter

Monochromatic color filter enum value (color_filter_t)

Definition at line 1046 of file packet.h.

Referenced by handle_client_capabilities_packet().

◆ color_level

uint32_t terminal_capabilities_packet_t::color_level

Color level enum value (terminal_color_mode_t)

Definition at line 1022 of file packet.h.

Referenced by handle_client_capabilities_packet(), and threaded_send_terminal_size_with_auto_detect().

◆ colorterm

char terminal_capabilities_packet_t::colorterm[32]

$COLORTERM environment variable value (for debugging)

Definition at line 1034 of file packet.h.

Referenced by handle_client_capabilities_packet(), and threaded_send_terminal_size_with_auto_detect().

◆ desired_fps

uint8_t terminal_capabilities_packet_t::desired_fps

Client's desired frame rate (1-144 FPS)

Definition at line 1044 of file packet.h.

Referenced by handle_client_capabilities_packet(), and threaded_send_terminal_size_with_auto_detect().

◆ detection_reliable

uint8_t terminal_capabilities_packet_t::detection_reliable

Detection reliability flag (1=reliable detection, 0=best guess)

Definition at line 1036 of file packet.h.

Referenced by handle_client_capabilities_packet(), and threaded_send_terminal_size_with_auto_detect().

◆ height

uint16_t terminal_capabilities_packet_t::height

Terminal height in characters.

Definition at line 1030 of file packet.h.

Referenced by handle_client_capabilities_packet(), and threaded_send_terminal_size_with_auto_detect().

◆ palette_custom

char terminal_capabilities_packet_t::palette_custom[64]

Custom palette characters (if palette_type == PALETTE_CUSTOM)

Definition at line 1042 of file packet.h.

Referenced by handle_client_capabilities_packet(), and threaded_send_terminal_size_with_auto_detect().

◆ palette_type

uint32_t terminal_capabilities_packet_t::palette_type

Palette type enum value (palette_type_t)

Definition at line 1040 of file packet.h.

Referenced by handle_client_capabilities_packet(), and threaded_send_terminal_size_with_auto_detect().

◆ render_mode

uint32_t terminal_capabilities_packet_t::render_mode

Render mode enum value (foreground/background/half-block)

Definition at line 1026 of file packet.h.

Referenced by handle_client_capabilities_packet(), and threaded_send_terminal_size_with_auto_detect().

◆ term_type

char terminal_capabilities_packet_t::term_type[32]

$TERM environment variable value (for debugging)

Definition at line 1032 of file packet.h.

Referenced by handle_client_capabilities_packet(), and threaded_send_terminal_size_with_auto_detect().

◆ utf8_support

uint32_t terminal_capabilities_packet_t::utf8_support

UTF-8 support flag (0=no UTF-8, 1=UTF-8 supported)

Definition at line 1038 of file packet.h.

Referenced by handle_client_capabilities_packet(), and threaded_send_terminal_size_with_auto_detect().

◆ wants_padding

uint8_t terminal_capabilities_packet_t::wants_padding

Whether client wants frame padding (1=padding enabled, 0=no padding for snapshot/piped modes)

Definition at line 1048 of file packet.h.

Referenced by handle_client_capabilities_packet(), and threaded_send_terminal_size_with_auto_detect().

◆ width

uint16_t terminal_capabilities_packet_t::width

Terminal width in characters.

Definition at line 1028 of file packet.h.

Referenced by handle_client_capabilities_packet(), and threaded_send_terminal_size_with_auto_detect().


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