Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
env.hpp File Reference

Environment variable parsing for terminal color and size configuration (TERM, COLORTERM, NO_COLOR, CLICOLOR_FORCE, COLUMN). More...

#include "sham/term/error_callback.hpp"
#include <string_view>
#include <optional>
Include dependency graph for env.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sham::term::TermEnvVars
 Holds optional terminal environment variables (TERM, COLORTERM, NO_COLOR, CLICOLOR_FORCE, COLUMN). More...

Namespaces

namespace  sham
 namespace for backends this one is named only sham since shambackends is too long to write

Functions

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.

Detailed Description

Environment variable parsing for terminal color and size configuration (TERM, COLORTERM, NO_COLOR, CLICOLOR_FORCE, COLUMN).

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

Definition in file env.hpp.

Function Documentation

◆ parse_terminal_support()

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.

Definition at line 73 of file env.cpp.