![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Go to the source code of this file.
Namespaces | |
| namespace | shambase |
| namespace for basic c++ utilities | |
Functions | |
| void | shambase::term_colors::enable_colors () |
| Enable colors in logs. | |
| void | shambase::term_colors::disable_colors () |
| Disable all colors. | |
| bool | shambase::term_colors::colors_enabled () |
| Are colors enabled. | |
| sham::term::ColorLevel | shambase::term_colors::color_level () |
| Get the detected/forced terminal color support level. | |
| const std::string | shambase::term_colors::empty () |
| Get the empty terminal escape. | |
| const std::string | shambase::term_colors::reset () |
| Get the reset terminal escape char. | |
| const std::string | shambase::term_colors::bold () |
| Get the bold terminal escape char. | |
| const std::string | shambase::term_colors::faint () |
| Get the faint terminal escape char. | |
| const std::string | shambase::term_colors::underline () |
| Get the underline terminal escape char. | |
| const std::string | shambase::term_colors::blink () |
| Get the blink terminal escape char. | |
| const std::string | shambase::term_colors::col8b_black () |
| Get the black terminal escape char. | |
| const std::string | shambase::term_colors::col8b_red () |
| Get the red terminal escape char. | |
| const std::string | shambase::term_colors::col8b_green () |
| Get the green terminal escape char. | |
| const std::string | shambase::term_colors::col8b_yellow () |
| Get the yellow terminal escape char. | |
| const std::string | shambase::term_colors::col8b_blue () |
| Get the blue terminal escape char. | |
| const std::string | shambase::term_colors::col8b_magenta () |
| Get the magenta (pink) terminal escape char. | |
| const std::string | shambase::term_colors::col8b_cyan () |
| Get the cyan terminal escape char. | |
| const std::string | shambase::term_colors::col8b_white () |
| Get the white terminal escape char. | |
| std::string | shambase::term_colors::col256_foreground (std::uint8_t index) |
| Get the 256-color palette foreground terminal escape char (empty if unsupported). | |
| std::string | shambase::term_colors::col256_background (std::uint8_t index) |
| Get the 256-color palette background terminal escape char (empty if unsupported). | |
| std::string | shambase::term_colors::rgb_foreground (std::uint8_t r, std::uint8_t g, std::uint8_t b) |
| Get the 24-bit RGB truecolor foreground terminal escape char (empty if unsupported). | |
| std::string | shambase::term_colors::rgb_background (std::uint8_t r, std::uint8_t g, std::uint8_t b) |
| Get the 24-bit RGB truecolor background terminal escape char (empty if unsupported). | |
Definition in file term_colors.hpp.
|
inline |
Get the blink terminal escape char.
Definition at line 49 of file term_colors.hpp.
|
inline |
Get the bold terminal escape char.
Definition at line 43 of file term_colors.hpp.
|
inline |
Get the 256-color palette background terminal escape char (empty if unsupported).
Definition at line 73 of file term_colors.hpp.
|
inline |
Get the 256-color palette foreground terminal escape char (empty if unsupported).
Definition at line 68 of file term_colors.hpp.
|
inline |
Get the black terminal escape char.
Definition at line 51 of file term_colors.hpp.
|
inline |
Get the blue terminal escape char.
Definition at line 59 of file term_colors.hpp.
|
inline |
Get the cyan terminal escape char.
Definition at line 63 of file term_colors.hpp.
|
inline |
Get the green terminal escape char.
Definition at line 55 of file term_colors.hpp.
|
inline |
Get the magenta (pink) terminal escape char.
Definition at line 61 of file term_colors.hpp.
|
inline |
Get the red terminal escape char.
Definition at line 53 of file term_colors.hpp.
|
inline |
Get the white terminal escape char.
Definition at line 65 of file term_colors.hpp.
|
inline |
Get the yellow terminal escape char.
Definition at line 57 of file term_colors.hpp.
|
inline |
Get the detected/forced terminal color support level.
Definition at line 36 of file term_colors.hpp.
|
inline |
Are colors enabled.
Definition at line 33 of file term_colors.hpp.
|
inline |
Disable all colors.
Definition at line 30 of file term_colors.hpp.
|
inline |
Get the empty terminal escape.
Definition at line 39 of file term_colors.hpp.
|
inline |
Enable colors in logs.
Definition at line 27 of file term_colors.hpp.
|
inline |
Get the faint terminal escape char.
Definition at line 45 of file term_colors.hpp.
|
inline |
Get the reset terminal escape char.
Definition at line 41 of file term_colors.hpp.
|
inline |
Get the 24-bit RGB truecolor background terminal escape char (empty if unsupported).
Definition at line 83 of file term_colors.hpp.
|
inline |
Get the 24-bit RGB truecolor foreground terminal escape char (empty if unsupported).
Definition at line 78 of file term_colors.hpp.
|
inline |
Get the underline terminal escape char.
Definition at line 47 of file term_colors.hpp.