29 std::optional<std::string_view> TERM;
30 std::optional<std::string_view> COLORTERM;
31 std::optional<std::string_view> NO_COLOR;
32 std::optional<std::string_view> CLICOLOR_FORCE;
33 std::optional<std::string_view> COLUMN;
Shared callback type definition for parsing error handling.
std::function< std::invalid_argument(const char *what, std::source_location where)> term_parse_callback_t
Callback signature for parsing error reporting (returns what, receives source location).
void parse_terminal_support(TermEnvVars vars, const term_parse_callback_t &error_callback)
Parses terminal environment variables to determine color support and set terminal size.
Holds optional terminal environment variables (TERM, COLORTERM, NO_COLOR, CLICOLOR_FORCE,...