![]() |
Shamrock 2025.10.0
Astrophysical Code
|
256-color palette escape sequences (\x1b[38;5;Nm / \x1b[48;5;Nm). More...
Functions | |
| std::string | foreground (std::uint8_t index) |
| Escape sequence to set the given palette index as foreground text color. | |
| std::string | background (std::uint8_t index) |
| Escape sequence to set the given palette index as background color. | |
256-color palette escape sequences (\x1b[38;5;Nm / \x1b[48;5;Nm).
These are only emitted if colors are enabled (see enable_colors/disable_colors) and color_level() is at least ColorLevel::ANSI256; otherwise an empty string is returned.
| std::string sham::term::colors_256::background | ( | std::uint8_t | index | ) |