|
| std::string | terminal::cmdline (int argc, char **argv) |
| |
| std::string | terminal::color_if (std::string_view s, bool b, const TerminalStyle &ts) |
| |
| std::string | terminal::color_text (std::string_view s, const TerminalStyle &ts) |
| |
| int | terminal::columns () |
| | Return the output terminal column count.
|
| |
| int | terminal::columns (std::FILE *stream) |
| | Return the terminal column count associated with a C stream.
|
| |
| bool | terminal::env_exists (std::string const &str) |
| |
| std::string | terminal::expand_environment (std::string const &s) |
| |
| template<typename T , typename U > |
| T | terminal::getenv_or_default (const std::string &var, const U &default_value) |
| |
| char const * | terminal::getenv_or_default (std::string const &str, char const *Default) |
| |
| bool | terminal::is_a_terminal (std::FILE *stream) |
| | Test whether a C output stream refers to a terminal.
|
| |
| bool | terminal::no_color_requested () |
| | Return whether NO_COLOR requests suppressing default ANSI color output.
|
| |
| constexpr ColorAttribute | terminal::operator| (ColorAttribute lhs, ColorAttribute rhs) |
| |
| constexpr ColorAttribute & | terminal::operator|= (ColorAttribute &lhs, ColorAttribute rhs) |
| |
| TerminalStyle | terminal::parseTerminalStyle (const std::string &styleStr) |
| |
| std::string | terminal::quote_shell (std::string_view s) |
| |
| int | terminal::rows () |
| | Return the output terminal row count.
|
| |
| int | terminal::rows (std::FILE *stream) |
| | Return the terminal row count associated with a C stream.
|
| |
| std::pair< int, int > | terminal::size () |
| | Return the output terminal size as (rows, columns).
|
| |
| std::pair< int, int > | terminal::size (std::FILE *stream) |
| | Return the terminal size associated with a C stream.
|
| |