![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Terminal color and UTF-8 support detection, and COLUMN parsing from environment variables. More...
#include "sham/term/env.hpp"#include "sham/term/color.hpp"#include "sham/term/tty.hpp"#include <string_view>#include <cctype>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | sham |
| namespace for backends this one is named only sham since shambackends is too long to write | |
Functions | |
| ColorLevel | sham::term::detect_color_level (TermEnvVars vars) |
| Detect the terminal emulator's color support level from TERM/COLORTERM. | |
| void | sham::term::parse_terminal_support (TermEnvVars vars, const term_parse_callback_t &error_callback) |
| Parses terminal environment variables to determine color support and set terminal size. | |
Terminal color and UTF-8 support detection, and COLUMN parsing from environment variables.
Definition in file env.cpp.
| ColorLevel sham::term::detect_color_level | ( | TermEnvVars | vars | ) |
| void sham::term::parse_terminal_support | ( | TermEnvVars | vars, |
| const term_parse_callback_t & | error_callback ) |