|
ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
|
🎨 Terminal color palette management with Unicode character width detection More...
Go to the source code of this file.
Functions | |
| const palette_def_t * | get_builtin_palette (palette_type_t type) |
| Get built-in palette definition. | |
| bool | palette_requires_utf8_encoding (const char *chars, size_t len) |
| Check if palette requires UTF-8 encoding. | |
| bool | validate_palette_chars (const char *chars, size_t len) |
| Validate palette character sequence. | |
| bool | detect_client_utf8_support (utf8_capabilities_t *caps) |
| Detect client UTF-8 support capabilities. | |
| palette_type_t | select_compatible_palette (palette_type_t requested, bool client_utf8) |
| Select compatible palette based on client capabilities. | |
| int | apply_palette_config (palette_type_t type, const char *custom_chars) |
| Apply palette configuration (set global palette) | |
| int | build_client_luminance_palette (const char *palette_chars, size_t palette_len, char luminance_mapping[256]) |
| Build luminance mapping table from palette characters. | |
| int | initialize_client_palette (palette_type_t palette_type, const char *custom_chars, char client_palette_chars[256], size_t *client_palette_len, char client_luminance_palette[256]) |
| Initialize client palette with full configuration. | |
| utf8_palette_t * | utf8_palette_create (const char *palette_string) |
| Create a UTF-8 palette from string. | |
| void | utf8_palette_destroy (utf8_palette_t *palette) |
| Destroy a UTF-8 palette and free resources. | |
| const utf8_char_info_t * | utf8_palette_get_char (const utf8_palette_t *palette, size_t index) |
| Get UTF-8 character information at index. | |
| size_t | utf8_palette_get_char_count (const utf8_palette_t *palette) |
| Get number of characters in UTF-8 palette. | |
| bool | utf8_palette_contains_char (const utf8_palette_t *palette, const char *utf8_char, size_t char_bytes) |
| Check if UTF-8 palette contains a specific character. | |
| size_t | utf8_palette_find_char_index (const utf8_palette_t *palette, const char *utf8_char, size_t char_bytes) |
| Find index of UTF-8 character in palette. | |
| size_t | utf8_palette_find_all_char_indices (const utf8_palette_t *palette, const char *utf8_char, size_t char_bytes, size_t *indices, size_t max_indices) |
| Find all indices of UTF-8 character in palette. | |
Variables | |
| const char | DEFAULT_ASCII_PALETTE [] = " ...',;:clodxkO0KXNWM" |
| Default ASCII palette for legacy functions. | |
| const size_t | DEFAULT_ASCII_PALETTE_LEN = 23 |
| Length of default ASCII palette. | |
🎨 Terminal color palette management with Unicode character width detection
Definition in file palette.c.