ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
options_state Struct Reference

Immutable, RCU-published snapshot of the application's runtime configuration. More...

#include <include/ascii-chat/options/options.h>

Data Fields

asciichat_mode_t detected_mode
 Mode detected from command-line arguments.
int mode_arg_index
 Explicit mode token in original argv, or -1 for implicit discovery/session strings.
bool help
 Show help message.
bool version
 Show version information.
char config_file [256]
 Config file path (–config).
int width
 Terminal width in characters (int for OPTION_TYPE_INT compat).
int height
 Terminal height in characters (int for OPTION_TYPE_INT compat).
bool auto_width
 Auto-detect width from terminal.
bool auto_height
 Auto-detect height from terminal.
bool address_explicit
 Native client destination overrides automatic LAN discovery.
char address [256]
 Server address (client) or bind address (server).
char address6 [256]
 IPv6 bind address (server only).
int port
 Server port number.
int websocket_port
 WebSocket server port (server/discovery-service only).
char tls_cert [256]
 Shared TLS certificate file path for secure network listeners.
char tls_key [256]
 Shared TLS private key file path for secure network listeners.
char tls_key_password [256]
 Shared TLS private key password.
char webtransport_bind_address [256]
 Browser HTTP/3 listener address.
char webtransport_origin [256]
 Allowed browser origin.
char webtransport_path [256]
 HTTP/3 CONNECT path.
char quic_bind_address [256]
 Concrete local QUIC listener address; empty disables QUIC.
char tls_ca_file [256]
 Shared TLS client trust anchors; empty uses system trust.
bool quic_visual_datagrams
 Prefer negotiated visual datagrams.
bool quic_audio_datagrams
 Prefer negotiated QUIC datagrams for audio.
bool discovery_quic
 Use QUIC for a disclosed discovery host endpoint.
char webtransport_public_url [256]
 Public HTTPS WebTransport endpoint advertised through ACDS.
int quic_port
 QUIC UDP port, or zero to use the TCP server port.
int quic_fallback_port
 TCP fallback port, or zero to disable fallback.
int max_clients
 Maximum concurrent clients (server only).
char session_string [(38+1)]
bool discovery
 Enable discovery session registration (default: false).
char discovery_server [256]
 discovery server address (default: 127.0.0.1)
bool mcp_server_restricted
 Restrict MCP capabilities for cloud deployment.
char mcp_downloads_dir [256]
 Hosted download directory override.
char mcp_downloads_url_prefix [256]
 Public HTTP origin for download links.
char mcp_transport [256]
 MCP transport: stdio or http.
char http_origin [256]
 Allowed HTTP Origin.
int discovery_port
 discovery server port (default: 27225)
char discovery_service_url [256]
 exclusive with discovery_port)
char discovery_service_key [256]
 HTTPS URL).
bool webrtc
 Enable WebRTC mode for discovery session (default: true, P2P WebRTC).
char discovery_database_path [256]
 ~/.ascii-chat/discovery.db)
bool lan_discovery
 Enable LAN service discovery via mDNS (client only).
bool no_mdns_advertise
 Disable mDNS service advertisement (server only).
int compression_level
 zstd compression level (1-9)
bool no_compress
 Disable compression entirely.
bool encode_audio
 Enable Opus audio encoding.
int reconnect_attempts
 Number of reconnection attempts (-1=infinite, 0=none).
int webcam_index
 Webcam device index (0 = first).
bool test_pattern
 Use test pattern instead of webcam.
int test_pattern_index
 Synthetic pattern selector (0 or 1).
bool no_audio_mixer
 Disable audio mixer (debug).
media_playlist_t media_playlist
 Ordered CLI artifacts shared with live media input.
char media_file [256]
 Media file path or "-" for stdin.
char media_url [256]
 Network URL (HTTP/HTTPS/YouTube/RTSP) - takes priority over media_file.
bool media_loop
 Loop media file playback.
bool media_from_stdin
 Reading from stdin (detected from "--file -").
double media_seek_timestamp
 Seek to timestamp in seconds before playback.
bool pause
 Start playback paused (toggle with spacebar).
char yt_dlp_options [512]
 "--cookies-from-browser=chrome --embed-subs")
int color
 Color setting (COLOR_SETTING_AUTO/TRUE/FALSE).
terminal_color_mode_t color_mode
 Color mode (auto/none/16/256/truecolor).
color_filter_t color_filter
 Monochromatic color filter (none/black/white/green/etc).
char color_scheme_name [64]
 Color scheme name (e.g., "pastel", "nord").
terminal_render_mode_t render_mode
 Render mode (foreground/background/half-block).
bool show_capabilities
 Show terminal capabilities and exit.
int force_utf8
 UTF-8 support setting (auto/true/false).
int stats_interval
 Periodic plain statistics on stdout; zero disables.
int fps
 Target framerate (0 = auto, 1-144).
bool fps_explicitly_set
 True if FPS was explicitly configured by the user.
bool face_follow
 Automatically frame and follow the selected face.
bool face_follow_debug
 Developer diagnostic face outline.
bool flip_x
 Effective horizontal orientation.
bool flip_x_explicit
 User selected an orientation for this process lifetime.
bool media_input
 Active input is a file/URL rather than the webcam.
bool flip_y
 Flip video vertically (Y-axis).
bool audio_pitch_correct
bool test_audio
 Replace microphone capture with a repeating audible test signal.
bool audio_spectral_agc
bool audio_spectral
bool audio_spectral_mixer
 Explicit post-mix processing; disabled by default.
bool audio_spectral_gate
bool audio_multiband
bool audio_adaptive_eq
int audio_fft_size
bool audio_enabled
 Enable audio streaming.
audio_source_t audio_source
 Visualization source (all/call/mic/media).
audio_capture_source_t audio_capture_source
 Local capture/media selection policy.
bool waveform
 Replace the video image with a live audio waveform.
bool fft
 Replace the video image with a live audio frequency spectrogram.
char fft_scale [32]
 Amplitude scale for the FFT visualization.
int microphone_channels
 Selected microphone channels: 1 (speech) or 2 (stereo).
int microphone_channel
 First zero-based input channel; -1 downmixes all inputs.
int microphone_index
 Microphone device index (-1 = default).
int speakers_index
 Speakers device index (-1 = default).
float microphone_sensitivity
 Microphone volume multiplier (0.0-1.0, default 1.0).
float speakers_volume
 Speaker volume multiplier (0.0-1.0, default 1.0).
bool audio_analysis_enabled
 Enable audio analysis (debug).
bool audio_no_playback
 Disable speaker playback (debug).
bool stabilize
 Reduce frame-to-frame character flicker.
bool stabilize_explicit
 Runtime preference was explicitly changed.
ascii_renderer_t renderer
 Character selection algorithm.
bool stretch
 Allow aspect ratio distortion.
char video_codec [64]
 Video codec (auto, hevc, h264, raw) - default: auto.
bool quiet
 Quiet mode (suppress logs).
unsigned short int verbose_level
 Verbosity level (stackable -V).
bool snapshot_mode
 Snapshot mode (one frame and exit).
double snapshot_delay
 Snapshot delay in seconds.
int zalgo
 Combining-mark intensity (0 = disabled, 1-10 = enabled).
bool matrix_rain
 Matrix digital rain effect (false = disabled).
bool fps_counter
 Show FPS counter overlay in top-right corner.
bool strip_ansi
 Strip ANSI escape sequences.
char otel_log_level [256]
char otel_endpoint [256]
char otel_ca_file [256]
char otel_enabled_telemetry [256]
double otel_realtime_sample_rate
int otel_realtime_max_per_second
int otel_metrics_interval
int otel_timeout
int otel_queue_capacity
char log_file [256]
 Log file path.
log_level_t log_level
 Log level threshold.
char grep_pattern [256]
 PCRE2 regex for log filtering.
bool json
 Enable JSON logging (–json flag).
char log_template [256]
 Custom log format string (formerly –log-format).
bool log_format_console_only
 Apply log format only to console output.
bool enable_keepawake
 Explicitly enable system sleep prevention.
bool disable_keepawake
 Explicitly disable system sleep prevention (allow OS to sleep).
bool encrypt_enabled
 Enable encryption.
char encrypt_key [256]
 SSH/GPG key file path (first –key flag, kept for compatibility).
char password [256]
 Password string.
char encrypt_keyfile [256]
 Alternative key file path.
bool no_encrypt
 Disable encryption (opt-out).
bool no_auth
 Disable authentication layer (–no-auth).
char server_key [256]
 Expected server public key (client).
char client_keys [256]
 Allowed client keys (server).
char identity_keys [32][256]
 All identity keys (populated when –key is used multiple times).
size_t num_identity_keys
 Number of identity keys loaded (0 means single-key mode using encrypt_key).
bool require_server_identity
 ACDS: require servers to provide signed Ed25519 identity.
bool require_client_identity
 ACDS: require clients to provide signed Ed25519 identity.
bool require_server_verify
 Server: only accept clients who verified via ACDS.
bool require_client_verify
 Client: only connect to servers whose identity was verified by ACDS.
bool discovery_expose_ip
 ACDS: explicitly allow public IP disclosure without verification (opt-in).
bool discovery_insecure
 ACDS: skip server key verification (MITM-vulnerable, requires explicit opt-in).
bool prefer_webrtc
 –prefer-webrtc: Try WebRTC before Direct TCP
bool no_webrtc
 –no-webrtc: Disable WebRTC, use Direct TCP only
char webrtc_bind_address [256]
 Optional numeric local address for WebRTC ICE sockets.
bool webrtc_skip_stun
 –webrtc-skip-stun: Skip Stage 2 (STUN), go to TURN
bool webrtc_relay_only
 –webrtc-relay-only: Require TURN relay candidates
bool webrtc_disable_turn
 –webrtc-disable-turn: Disable Stage 3 (TURN), use STUN only
bool webrtc_skip_host
 –webrtc-skip-host: Skip host candidates, force STUN/TURN only
int webrtc_ice_timeout_ms
 –webrtc-ice-timeout: ICE gathering timeout in milliseconds (default: 10000)
int webrtc_reconnect_attempts
 –webrtc-reconnect-attempts: Number of retry attempts (default: 3)
bool enable_upnp
 Opt-in TCP/WebSocket and WebRTC UDP mapping via –port-forwarding.
char stun_servers [256]
 ACDS: Comma-separated list of STUN server URLs.
char turn_servers [256]
 ACDS: Comma-separated list of TURN server URLs.
char turn_username [256]
 ACDS: Username for TURN authentication.
char turn_credential [256]
 ACDS: Credential/password for TURN authentication.
char turn_secret [256]
 ACDS: Shared secret for dynamic TURN credential generation (HMAC-SHA1).
palette_type_t palette_type
 Selected palette type.
char palette_custom [256]
 Custom palette characters.
bool palette_custom_set
 True if custom palette was set.
bool palette_explicit
 Palette explicitly selected.
bool splash_screen
 Show splash screen (default: true = show, use –no-splash-screen to hide).
bool splash_screen_explicitly_set
 True if splash screen was explicitly set by user.
bool status_screen
 Show status screen (default: true = show, use –no-status-screen to hide).
bool status_screen_explicitly_set
 True if status_screen was explicitly set by user.
bool no_check_update
 Disable automatic update checks (default: false = checks enabled).
double debug_errno_stacks_time
 Delay before the error report.
bool debug_errno_stacks_time_explicit
 True if –errno-stacks was provided.
double debug_sync_state_time
 Time parameter for –sync-state.
bool debug_sync_state_time_explicit
 True if –sync-state was explicitly provided.
double debug_backtrace_time
 Time parameter for –backtrace option.
bool debug_backtrace_time_explicit
 True if –backtrace was explicitly provided.
double debug_memory_report_interval
 Interval in seconds for periodic memory reports.
bool debug_memory_report_interval_explicit
 True if –memory-report was explicitly provided.
char render_file [256]
 Output file path (e.g. output.mp4).
bool render_kitty
 Display a snapshot with Kitty graphics.
int render_theme
 0=dark 1=light 2=auto
char render_font [256]
 Font family name or .ttf path (empty = platform default).
double render_font_size
 Font size in points (0 selects an automatic size).

Detailed Description

Immutable, RCU-published snapshot of the application's runtime configuration.

The fields cover mode selection, terminal and media rendering, audio, network and discovery endpoints, authentication and encryption policy, logging, and the explicit-value markers used while merging defaults. Readers borrow the current snapshot through options_get(); updates allocate and publish a replacement instead of mutating a snapshot that another thread may still be using.

Definition at line 979 of file options.h.

Field Documentation

◆ address

char options_state::address[256]

Server address (client) or bind address (server).

Definition at line 1007 of file options.h.

Referenced by ascii_otel_init(), client_main(), and options_t_new().

◆ address6

char options_state::address6[256]

IPv6 bind address (server only).

Definition at line 1008 of file options.h.

Referenced by ascii_otel_init(), and options_t_new().

◆ address_explicit

bool options_state::address_explicit

Native client destination overrides automatic LAN discovery.

Definition at line 1005 of file options.h.

◆ audio_adaptive_eq

bool options_state::audio_adaptive_eq

Definition at line 1118 of file options.h.

Referenced by client_audio_pipeline_config_for_source().

◆ audio_analysis_enabled

bool options_state::audio_analysis_enabled

Enable audio analysis (debug).

Definition at line 1132 of file options.h.

Referenced by options_t_new().

◆ audio_capture_source

audio_capture_source_t options_state::audio_capture_source

Local capture/media selection policy.

Definition at line 1122 of file options.h.

Referenced by client_audio_pipeline_config_for_source(), and options_t_new().

◆ audio_enabled

bool options_state::audio_enabled

Enable audio streaming.

Definition at line 1120 of file options.h.

Referenced by options_t_new().

◆ audio_fft_size

int options_state::audio_fft_size

Definition at line 1119 of file options.h.

Referenced by client_audio_pipeline_config_for_source(), and options_t_new().

◆ audio_multiband

bool options_state::audio_multiband

Definition at line 1117 of file options.h.

Referenced by client_audio_pipeline_config_for_source().

◆ audio_no_playback

bool options_state::audio_no_playback

Disable speaker playback (debug).

Definition at line 1133 of file options.h.

Referenced by options_t_new().

◆ audio_pitch_correct

bool options_state::audio_pitch_correct

Definition at line 1111 of file options.h.

Referenced by client_audio_pipeline_config_for_source().

◆ audio_source

audio_source_t options_state::audio_source

Visualization source (all/call/mic/media).

Definition at line 1121 of file options.h.

Referenced by options_t_new().

◆ audio_spectral

bool options_state::audio_spectral

Definition at line 1114 of file options.h.

Referenced by client_audio_pipeline_config_for_source(), and options_t_new().

◆ audio_spectral_agc

bool options_state::audio_spectral_agc

Definition at line 1113 of file options.h.

Referenced by client_audio_pipeline_config_for_source().

◆ audio_spectral_gate

bool options_state::audio_spectral_gate

Definition at line 1116 of file options.h.

Referenced by client_audio_pipeline_config_for_source(), and options_t_new().

◆ audio_spectral_mixer

bool options_state::audio_spectral_mixer

Explicit post-mix processing; disabled by default.

Definition at line 1115 of file options.h.

Referenced by options_t_new().

◆ auto_height

bool options_state::auto_height

◆ auto_width

bool options_state::auto_width

◆ client_keys

char options_state::client_keys[256]

Allowed client keys (server).

Definition at line 1185 of file options.h.

Referenced by acip_security_init_options().

◆ color

int options_state::color

Color setting (COLOR_SETTING_AUTO/TRUE/FALSE).

Definition at line 1091 of file options.h.

Referenced by options_t_new(), and options_terminal_settings_ptr().

◆ color_filter

color_filter_t options_state::color_filter

◆ color_mode

◆ color_scheme_name

char options_state::color_scheme_name[64]

Color scheme name (e.g., "pastel", "nord").

Definition at line 1094 of file options.h.

Referenced by options_t_new().

◆ compression_level

int options_state::compression_level

zstd compression level (1-9)

Definition at line 1058 of file options.h.

Referenced by options_t_new().

◆ config_file

char options_state::config_file[256]

Config file path (–config).

Definition at line 991 of file options.h.

◆ debug_backtrace_time

double options_state::debug_backtrace_time

Time parameter for –backtrace option.

Definition at line 1250 of file options.h.

Referenced by main().

◆ debug_backtrace_time_explicit

bool options_state::debug_backtrace_time_explicit

True if –backtrace was explicitly provided.

Definition at line 1251 of file options.h.

◆ debug_errno_stacks_time

double options_state::debug_errno_stacks_time

Delay before the error report.

Definition at line 1246 of file options.h.

Referenced by debug_errno_start_thread().

◆ debug_errno_stacks_time_explicit

bool options_state::debug_errno_stacks_time_explicit

True if –errno-stacks was provided.

Definition at line 1247 of file options.h.

◆ debug_memory_report_interval

double options_state::debug_memory_report_interval

Interval in seconds for periodic memory reports.

Definition at line 1252 of file options.h.

Referenced by debug_stats_start_thread().

◆ debug_memory_report_interval_explicit

bool options_state::debug_memory_report_interval_explicit

True if –memory-report was explicitly provided.

Definition at line 1253 of file options.h.

◆ debug_sync_state_time

double options_state::debug_sync_state_time

Time parameter for –sync-state.

Definition at line 1248 of file options.h.

Referenced by main().

◆ debug_sync_state_time_explicit

bool options_state::debug_sync_state_time_explicit

True if –sync-state was explicitly provided.

Definition at line 1249 of file options.h.

◆ detected_mode

asciichat_mode_t options_state::detected_mode

Mode detected from command-line arguments.

Definition at line 983 of file options.h.

Referenced by apply_mode_specific_defaults(), main(), and validate_options_and_report().

◆ disable_keepawake

bool options_state::disable_keepawake

Explicitly disable system sleep prevention (allow OS to sleep).

Definition at line 1173 of file options.h.

Referenced by options_t_new().

◆ discovery

bool options_state::discovery

Enable discovery session registration (default: false).

Definition at line 1032 of file options.h.

Referenced by options_t_new(), and validate_options_and_report().

◆ discovery_database_path

char options_state::discovery_database_path[256]

~/.ascii-chat/discovery.db)

discovery database file path (default:

Definition at line 1046 of file options.h.

Referenced by options_t_new().

◆ discovery_expose_ip

bool options_state::discovery_expose_ip

ACDS: explicitly allow public IP disclosure without verification (opt-in).

Definition at line 1200 of file options.h.

Referenced by options_t_new().

◆ discovery_insecure

bool options_state::discovery_insecure

ACDS: skip server key verification (MITM-vulnerable, requires explicit opt-in).

Definition at line 1201 of file options.h.

Referenced by options_t_new().

◆ discovery_port

int options_state::discovery_port

discovery server port (default: 27225)

Definition at line 1040 of file options.h.

Referenced by options_t_new().

◆ discovery_quic

bool options_state::discovery_quic

Use QUIC for a disclosed discovery host endpoint.

Definition at line 1021 of file options.h.

◆ discovery_server

char options_state::discovery_server[256]

discovery server address (default: 127.0.0.1)

Definition at line 1033 of file options.h.

Referenced by options_t_new().

◆ discovery_service_key

char options_state::discovery_service_key[256]

HTTPS URL).

discovery server public key for trust verification (SSH/GPG key or

Definition at line 1043 of file options.h.

◆ discovery_service_url

char options_state::discovery_service_url[256]

exclusive with discovery_port)

discovery server WebSocket URL (ws:// or wss://, mutually

Definition at line 1041 of file options.h.

◆ enable_keepawake

bool options_state::enable_keepawake

Explicitly enable system sleep prevention.

Definition at line 1172 of file options.h.

Referenced by options_t_new().

◆ enable_upnp

bool options_state::enable_upnp

Opt-in TCP/WebSocket and WebRTC UDP mapping via –port-forwarding.

Definition at line 1219 of file options.h.

Referenced by options_t_new().

◆ encode_audio

bool options_state::encode_audio

Enable Opus audio encoding.

Definition at line 1060 of file options.h.

Referenced by options_t_new().

◆ encrypt_enabled

bool options_state::encrypt_enabled

Enable encryption.

Definition at line 1178 of file options.h.

Referenced by acip_security_init_options(), and options_t_new().

◆ encrypt_key

char options_state::encrypt_key[256]

SSH/GPG key file path (first –key flag, kept for compatibility).

Definition at line 1179 of file options.h.

Referenced by acip_security_init_options(), discovery_session_create(), and options_collect_identity_keys().

◆ encrypt_keyfile

char options_state::encrypt_keyfile[256]

Alternative key file path.

Definition at line 1181 of file options.h.

◆ face_follow

bool options_state::face_follow

Automatically frame and follow the selected face.

Definition at line 1101 of file options.h.

◆ face_follow_debug

bool options_state::face_follow_debug

Developer diagnostic face outline.

Definition at line 1102 of file options.h.

◆ fft

bool options_state::fft

Replace the video image with a live audio frequency spectrogram.

Definition at line 1124 of file options.h.

Referenced by options_prepare_patch(), options_resolve_flip_x(), and options_t_new().

◆ fft_scale

char options_state::fft_scale[32]

Amplitude scale for the FFT visualization.

Definition at line 1125 of file options.h.

Referenced by options_t_new().

◆ flip_x

bool options_state::flip_x

Effective horizontal orientation.

Definition at line 1103 of file options.h.

Referenced by options_resolve_flip_x(), and options_t_new().

◆ flip_x_explicit

bool options_state::flip_x_explicit

User selected an orientation for this process lifetime.

Definition at line 1104 of file options.h.

Referenced by options_prepare_patch(), and options_resolve_flip_x().

◆ flip_y

bool options_state::flip_y

Flip video vertically (Y-axis).

Definition at line 1106 of file options.h.

Referenced by options_t_new().

◆ force_utf8

int options_state::force_utf8

UTF-8 support setting (auto/true/false).

Definition at line 1097 of file options.h.

Referenced by options_t_new(), options_terminal_settings_ptr(), and session_protocol_build_capabilities().

◆ fps

◆ fps_counter

bool options_state::fps_counter

Show FPS counter overlay in top-right corner.

Definition at line 1153 of file options.h.

◆ fps_explicitly_set

bool options_state::fps_explicitly_set

True if FPS was explicitly configured by the user.

Definition at line 1100 of file options.h.

Referenced by options_t_new().

◆ grep_pattern

char options_state::grep_pattern[256]

PCRE2 regex for log filtering.

Definition at line 1168 of file options.h.

Referenced by options_t_new().

◆ height

◆ help

bool options_state::help

Show help message.

Definition at line 989 of file options.h.

Referenced by main(), and options_t_new().

◆ http_origin

char options_state::http_origin[256]

Allowed HTTP Origin.

Definition at line 1039 of file options.h.

◆ identity_keys

char options_state::identity_keys[32][256]

All identity keys (populated when –key is used multiple times).

Definition at line 1189 of file options.h.

Referenced by discovery_session_create(), and options_collect_identity_keys().

◆ json

bool options_state::json

Enable JSON logging (–json flag).

Definition at line 1169 of file options.h.

Referenced by options_t_new().

◆ lan_discovery

bool options_state::lan_discovery

Enable LAN service discovery via mDNS (client only).

Definition at line 1052 of file options.h.

Referenced by options_t_new().

◆ log_file

char options_state::log_file[256]

Log file path.

Definition at line 1166 of file options.h.

Referenced by main(), and options_t_new().

◆ log_format_console_only

bool options_state::log_format_console_only

Apply log format only to console output.

Definition at line 1171 of file options.h.

◆ log_level

log_level_t options_state::log_level

Log level threshold.

Definition at line 1167 of file options.h.

Referenced by initial_options(), main(), options_t_new(), and parse_log_level_option().

◆ log_template

char options_state::log_template[256]

Custom log format string (formerly –log-format).

Definition at line 1170 of file options.h.

◆ matrix_rain

◆ max_clients

int options_state::max_clients

Maximum concurrent clients (server only).

Definition at line 1025 of file options.h.

Referenced by options_t_new().

◆ mcp_downloads_dir

char options_state::mcp_downloads_dir[256]

Hosted download directory override.

Definition at line 1036 of file options.h.

◆ mcp_downloads_url_prefix

char options_state::mcp_downloads_url_prefix[256]

Public HTTP origin for download links.

Definition at line 1037 of file options.h.

◆ mcp_server_restricted

bool options_state::mcp_server_restricted

Restrict MCP capabilities for cloud deployment.

Definition at line 1035 of file options.h.

◆ mcp_transport

char options_state::mcp_transport[256]

MCP transport: stdio or http.

Definition at line 1038 of file options.h.

◆ media_file

char options_state::media_file[256]

Media file path or "-" for stdin.

Definition at line 1079 of file options.h.

◆ media_from_stdin

bool options_state::media_from_stdin

Reading from stdin (detected from "--file -").

Definition at line 1082 of file options.h.

Referenced by options_t_new().

◆ media_input

bool options_state::media_input

Active input is a file/URL rather than the webcam.

Definition at line 1105 of file options.h.

Referenced by options_resolve_flip_x().

◆ media_loop

bool options_state::media_loop

Loop media file playback.

Definition at line 1081 of file options.h.

Referenced by options_t_new().

◆ media_playlist

media_playlist_t options_state::media_playlist

Ordered CLI artifacts shared with live media input.

Definition at line 1078 of file options.h.

◆ media_seek_timestamp

double options_state::media_seek_timestamp

Seek to timestamp in seconds before playback.

Definition at line 1083 of file options.h.

Referenced by options_t_new().

◆ media_url

char options_state::media_url[256]

Network URL (HTTP/HTTPS/YouTube/RTSP) - takes priority over media_file.

Definition at line 1080 of file options.h.

◆ microphone_channel

int options_state::microphone_channel

First zero-based input channel; -1 downmixes all inputs.

Definition at line 1127 of file options.h.

Referenced by options_t_new().

◆ microphone_channels

int options_state::microphone_channels

Selected microphone channels: 1 (speech) or 2 (stereo).

Definition at line 1126 of file options.h.

Referenced by client_audio_pipeline_config_for_source(), and options_t_new().

◆ microphone_index

int options_state::microphone_index

Microphone device index (-1 = default).

Definition at line 1128 of file options.h.

Referenced by options_t_new().

◆ microphone_sensitivity

float options_state::microphone_sensitivity

Microphone volume multiplier (0.0-1.0, default 1.0).

Definition at line 1130 of file options.h.

Referenced by options_t_new().

◆ mode_arg_index

int options_state::mode_arg_index

Explicit mode token in original argv, or -1 for implicit discovery/session strings.

Definition at line 984 of file options.h.

Referenced by main(), and options_t_new().

◆ no_audio_mixer

bool options_state::no_audio_mixer

Disable audio mixer (debug).

Definition at line 1073 of file options.h.

Referenced by options_t_new().

◆ no_auth

bool options_state::no_auth

Disable authentication layer (–no-auth).

Definition at line 1183 of file options.h.

Referenced by acip_security_init_options(), and options_t_new().

◆ no_check_update

bool options_state::no_check_update

Disable automatic update checks (default: false = checks enabled).

Definition at line 1241 of file options.h.

Referenced by options_t_new().

◆ no_compress

bool options_state::no_compress

Disable compression entirely.

Definition at line 1059 of file options.h.

Referenced by options_t_new().

◆ no_encrypt

bool options_state::no_encrypt

Disable encryption (opt-out).

Definition at line 1182 of file options.h.

Referenced by acip_security_init_options(), and options_t_new().

◆ no_mdns_advertise

bool options_state::no_mdns_advertise

Disable mDNS service advertisement (server only).

Definition at line 1053 of file options.h.

Referenced by options_t_new().

◆ no_webrtc

bool options_state::no_webrtc

–no-webrtc: Disable WebRTC, use Direct TCP only

Definition at line 1207 of file options.h.

Referenced by options_t_new(), and validate_options_and_report().

◆ num_identity_keys

size_t options_state::num_identity_keys

Number of identity keys loaded (0 means single-key mode using encrypt_key).

Definition at line 1191 of file options.h.

Referenced by discovery_session_create(), options_collect_identity_keys(), and options_t_new().

◆ otel_ca_file

char options_state::otel_ca_file[256]

Definition at line 1159 of file options.h.

Referenced by ascii_otel_init().

◆ otel_enabled_telemetry

char options_state::otel_enabled_telemetry[256]

Definition at line 1160 of file options.h.

Referenced by ascii_otel_init(), and options_t_new().

◆ otel_endpoint

char options_state::otel_endpoint[256]

Definition at line 1158 of file options.h.

Referenced by ascii_otel_init(), and options_t_new().

◆ otel_log_level

char options_state::otel_log_level[256]

Definition at line 1157 of file options.h.

Referenced by ascii_otel_init(), and options_t_new().

◆ otel_metrics_interval

int options_state::otel_metrics_interval

Definition at line 1163 of file options.h.

Referenced by ascii_otel_init(), and options_t_new().

◆ otel_queue_capacity

int options_state::otel_queue_capacity

Definition at line 1165 of file options.h.

Referenced by ascii_otel_init(), and options_t_new().

◆ otel_realtime_max_per_second

int options_state::otel_realtime_max_per_second

Definition at line 1162 of file options.h.

Referenced by ascii_otel_init(), and options_t_new().

◆ otel_realtime_sample_rate

double options_state::otel_realtime_sample_rate

Definition at line 1161 of file options.h.

Referenced by ascii_otel_init(), and options_t_new().

◆ otel_timeout

int options_state::otel_timeout

Definition at line 1164 of file options.h.

Referenced by ascii_otel_init(), and options_t_new().

◆ palette_custom

◆ palette_custom_set

bool options_state::palette_custom_set

True if custom palette was set.

Definition at line 1231 of file options.h.

Referenced by acip_render_settings_options(), main(), options_t_new(), parse_palette_chars_option(), and session_protocol_build_capabilities().

◆ palette_explicit

bool options_state::palette_explicit

Palette explicitly selected.

Definition at line 1232 of file options.h.

Referenced by acip_render_settings_options(), acip_render_settings_prepare(), parse_palette_chars(), and validate_glyph_palette().

◆ palette_type

◆ password

char options_state::password[256]

Password string.

Definition at line 1180 of file options.h.

Referenced by acip_security_init_options().

◆ pause

bool options_state::pause

Start playback paused (toggle with spacebar).

Definition at line 1084 of file options.h.

Referenced by options_t_new().

◆ port

int options_state::port

Server port number.

Definition at line 1009 of file options.h.

Referenced by apply_mode_specific_defaults(), ascii_otel_init(), client_main(), options_t_new(), and validate_port_callback().

◆ prefer_webrtc

bool options_state::prefer_webrtc

–prefer-webrtc: Try WebRTC before Direct TCP

Definition at line 1206 of file options.h.

Referenced by options_t_new().

◆ quic_audio_datagrams

bool options_state::quic_audio_datagrams

Prefer negotiated QUIC datagrams for audio.

Definition at line 1020 of file options.h.

◆ quic_bind_address

char options_state::quic_bind_address[256]

Concrete local QUIC listener address; empty disables QUIC.

Definition at line 1017 of file options.h.

◆ quic_fallback_port

int options_state::quic_fallback_port

TCP fallback port, or zero to disable fallback.

Definition at line 1024 of file options.h.

◆ quic_port

int options_state::quic_port

QUIC UDP port, or zero to use the TCP server port.

Definition at line 1023 of file options.h.

◆ quic_visual_datagrams

bool options_state::quic_visual_datagrams

Prefer negotiated visual datagrams.

Definition at line 1019 of file options.h.

◆ quiet

bool options_state::quiet

Quiet mode (suppress logs).

Definition at line 1147 of file options.h.

Referenced by log_set_terminal_output(), and options_t_new().

◆ reconnect_attempts

int options_state::reconnect_attempts

Number of reconnection attempts (-1=infinite, 0=none).

Definition at line 1065 of file options.h.

Referenced by options_t_new().

◆ render_file

char options_state::render_file[256]

Output file path (e.g. output.mp4).

Definition at line 1258 of file options.h.

◆ render_font

char options_state::render_font[256]

Font family name or .ttf path (empty = platform default).

Definition at line 1263 of file options.h.

◆ render_font_size

double options_state::render_font_size

Font size in points (0 selects an automatic size).

Definition at line 1264 of file options.h.

Referenced by options_t_new().

◆ render_kitty

bool options_state::render_kitty

Display a snapshot with Kitty graphics.

Definition at line 1260 of file options.h.

◆ render_mode

◆ render_theme

int options_state::render_theme

0=dark 1=light 2=auto

Definition at line 1262 of file options.h.

Referenced by options_t_new().

◆ renderer

ascii_renderer_t options_state::renderer

Character selection algorithm.

Definition at line 1140 of file options.h.

Referenced by acip_render_settings_options(), acip_render_settings_prepare(), options_t_new(), and validate_glyph_palette().

◆ require_client_identity

bool options_state::require_client_identity

ACDS: require clients to provide signed Ed25519 identity.

Definition at line 1197 of file options.h.

Referenced by options_t_new().

◆ require_client_verify

bool options_state::require_client_verify

Client: only connect to servers whose identity was verified by ACDS.

Definition at line 1199 of file options.h.

Referenced by options_t_new().

◆ require_server_identity

bool options_state::require_server_identity

ACDS: require servers to provide signed Ed25519 identity.

Definition at line 1196 of file options.h.

Referenced by options_t_new().

◆ require_server_verify

bool options_state::require_server_verify

Server: only accept clients who verified via ACDS.

Definition at line 1198 of file options.h.

Referenced by acip_security_init_options(), and options_t_new().

◆ server_key

char options_state::server_key[256]

Expected server public key (client).

Definition at line 1184 of file options.h.

Referenced by acip_security_init_options().

◆ session_string

char options_state::session_string[(38+1)]

Session string for ACDS discovery (calculated max size: 38 chars+ null)

Definition at line 1026 of file options.h.

Referenced by acip_security_init_options().

◆ show_capabilities

bool options_state::show_capabilities

Show terminal capabilities and exit.

Definition at line 1096 of file options.h.

Referenced by options_t_new().

◆ snapshot_delay

double options_state::snapshot_delay

Snapshot delay in seconds.

Definition at line 1150 of file options.h.

Referenced by options_t_new(), and parse_snapshot_delay_option().

◆ snapshot_mode

bool options_state::snapshot_mode

Snapshot mode (one frame and exit).

Definition at line 1149 of file options.h.

Referenced by options_t_new(), options_terminal_settings_ptr(), and session_protocol_build_capabilities().

◆ speakers_index

int options_state::speakers_index

Speakers device index (-1 = default).

Definition at line 1129 of file options.h.

Referenced by options_t_new().

◆ speakers_volume

float options_state::speakers_volume

Speaker volume multiplier (0.0-1.0, default 1.0).

Definition at line 1131 of file options.h.

Referenced by options_t_new().

◆ splash_screen

bool options_state::splash_screen

Show splash screen (default: true = show, use –no-splash-screen to hide).

Definition at line 1237 of file options.h.

Referenced by options_t_new().

◆ splash_screen_explicitly_set

bool options_state::splash_screen_explicitly_set

True if splash screen was explicitly set by user.

Definition at line 1238 of file options.h.

Referenced by options_t_new().

◆ stabilize

bool options_state::stabilize

Reduce frame-to-frame character flicker.

Definition at line 1138 of file options.h.

Referenced by acip_render_settings_options(), acip_render_settings_prepare(), options_prepare_patch(), and options_t_new().

◆ stabilize_explicit

bool options_state::stabilize_explicit

Runtime preference was explicitly changed.

Definition at line 1139 of file options.h.

Referenced by options_prepare_patch(), and options_t_new().

◆ stats_interval

int options_state::stats_interval

Periodic plain statistics on stdout; zero disables.

Definition at line 1098 of file options.h.

◆ status_screen

bool options_state::status_screen

Show status screen (default: true = show, use –no-status-screen to hide).

Definition at line 1239 of file options.h.

Referenced by main(), and options_t_new().

◆ status_screen_explicitly_set

bool options_state::status_screen_explicitly_set

True if status_screen was explicitly set by user.

Definition at line 1240 of file options.h.

Referenced by options_t_new().

◆ stretch

bool options_state::stretch

Allow aspect ratio distortion.

Definition at line 1141 of file options.h.

Referenced by options_t_new().

◆ strip_ansi

bool options_state::strip_ansi

Strip ANSI escape sequences.

Definition at line 1154 of file options.h.

Referenced by options_t_new().

◆ stun_servers

char options_state::stun_servers[256]

ACDS: Comma-separated list of STUN server URLs.

Definition at line 1220 of file options.h.

Referenced by options_t_new().

◆ test_audio

bool options_state::test_audio

Replace microphone capture with a repeating audible test signal.

Definition at line 1112 of file options.h.

Referenced by client_audio_pipeline_config_for_source(), and options_t_new().

◆ test_pattern

bool options_state::test_pattern

Use test pattern instead of webcam.

Definition at line 1071 of file options.h.

Referenced by options_resolve_flip_x(), and options_t_new().

◆ test_pattern_index

int options_state::test_pattern_index

Synthetic pattern selector (0 or 1).

Definition at line 1072 of file options.h.

◆ tls_ca_file

char options_state::tls_ca_file[256]

Shared TLS client trust anchors; empty uses system trust.

Definition at line 1018 of file options.h.

◆ tls_cert

char options_state::tls_cert[256]

Shared TLS certificate file path for secure network listeners.

Definition at line 1011 of file options.h.

Referenced by apply_mode_specific_defaults().

◆ tls_key

char options_state::tls_key[256]

Shared TLS private key file path for secure network listeners.

Definition at line 1012 of file options.h.

Referenced by apply_mode_specific_defaults().

◆ tls_key_password

char options_state::tls_key_password[256]

Shared TLS private key password.

Definition at line 1013 of file options.h.

◆ turn_credential

char options_state::turn_credential[256]

ACDS: Credential/password for TURN authentication.

Definition at line 1223 of file options.h.

Referenced by options_t_new(), and validate_options_and_report().

◆ turn_secret

char options_state::turn_secret[256]

ACDS: Shared secret for dynamic TURN credential generation (HMAC-SHA1).

Definition at line 1224 of file options.h.

◆ turn_servers

char options_state::turn_servers[256]

ACDS: Comma-separated list of TURN server URLs.

Definition at line 1221 of file options.h.

Referenced by nat_detect_quality(), and options_t_new().

◆ turn_username

char options_state::turn_username[256]

ACDS: Username for TURN authentication.

Definition at line 1222 of file options.h.

Referenced by options_t_new(), and validate_options_and_report().

◆ verbose_level

unsigned short int options_state::verbose_level

Verbosity level (stackable -V).

Definition at line 1148 of file options.h.

Referenced by options_t_new().

◆ version

bool options_state::version

Show version information.

Definition at line 990 of file options.h.

Referenced by main(), and options_t_new().

◆ video_codec

char options_state::video_codec[64]

Video codec (auto, hevc, h264, raw) - default: auto.

Definition at line 1142 of file options.h.

◆ waveform

bool options_state::waveform

Replace the video image with a live audio waveform.

Definition at line 1123 of file options.h.

Referenced by options_prepare_patch(), options_resolve_flip_x(), and options_t_new().

◆ webcam_index

int options_state::webcam_index

Webcam device index (0 = first).

Definition at line 1070 of file options.h.

Referenced by options_t_new(), and parse_webcam_index_option().

◆ webrtc

bool options_state::webrtc

Enable WebRTC mode for discovery session (default: true, P2P WebRTC).

Definition at line 1045 of file options.h.

Referenced by options_t_new().

◆ webrtc_bind_address

char options_state::webrtc_bind_address[256]

Optional numeric local address for WebRTC ICE sockets.

Definition at line 1208 of file options.h.

◆ webrtc_disable_turn

bool options_state::webrtc_disable_turn

–webrtc-disable-turn: Disable Stage 3 (TURN), use STUN only

Definition at line 1211 of file options.h.

Referenced by options_t_new(), and validate_options_and_report().

◆ webrtc_ice_timeout_ms

int options_state::webrtc_ice_timeout_ms

–webrtc-ice-timeout: ICE gathering timeout in milliseconds (default: 10000)

Definition at line 1213 of file options.h.

Referenced by options_t_new().

◆ webrtc_reconnect_attempts

int options_state::webrtc_reconnect_attempts

–webrtc-reconnect-attempts: Number of retry attempts (default: 3)

Definition at line 1214 of file options.h.

Referenced by options_t_new().

◆ webrtc_relay_only

bool options_state::webrtc_relay_only

–webrtc-relay-only: Require TURN relay candidates

Definition at line 1210 of file options.h.

Referenced by options_t_new(), and validate_options_and_report().

◆ webrtc_skip_host

bool options_state::webrtc_skip_host

–webrtc-skip-host: Skip host candidates, force STUN/TURN only

Definition at line 1212 of file options.h.

Referenced by options_t_new().

◆ webrtc_skip_stun

bool options_state::webrtc_skip_stun

–webrtc-skip-stun: Skip Stage 2 (STUN), go to TURN

Definition at line 1209 of file options.h.

Referenced by options_t_new().

◆ websocket_port

int options_state::websocket_port

WebSocket server port (server/discovery-service only).

Definition at line 1010 of file options.h.

Referenced by apply_mode_specific_defaults(), and options_t_new().

◆ webtransport_bind_address

char options_state::webtransport_bind_address[256]

Browser HTTP/3 listener address.

Definition at line 1014 of file options.h.

◆ webtransport_origin

char options_state::webtransport_origin[256]

Allowed browser origin.

Definition at line 1015 of file options.h.

◆ webtransport_path

char options_state::webtransport_path[256]

HTTP/3 CONNECT path.

Definition at line 1016 of file options.h.

◆ webtransport_public_url

char options_state::webtransport_public_url[256]

Public HTTPS WebTransport endpoint advertised through ACDS.

Definition at line 1022 of file options.h.

◆ width

◆ yt_dlp_options

char options_state::yt_dlp_options[512]

"--cookies-from-browser=chrome --embed-subs")

Arbitrary yt-dlp options (e.g.,

Definition at line 1085 of file options.h.

◆ zalgo

int options_state::zalgo

Combining-mark intensity (0 = disabled, 1-10 = enabled).

Definition at line 1151 of file options.h.


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