koutil
|
Namespaces | |
namespace | color |
namespace | color_literals |
Classes | |
struct | Color |
Structure representing a color. More... | |
struct | ColorBG |
Structure representing a background color. More... | |
struct | ColorFG |
Structure representing a foreground color. More... | |
struct | CursorMove |
Represents a cursor movement command. More... | |
struct | CursorPos |
Represents a cursor movement command. More... | |
struct | Dimensions |
Represents the dimensions of the terminal buffer. More... | |
class | terminal |
Enumerations | |
enum class | CursorCommand { MOVE_HOME , SAVE , RESTORE , HIDE , SHOW } |
Enumerates different cursor commands. More... | |
enum class | BufferCommand : char { ENABLE_ALTERNATIVE_BUFFER = 'h' , DISABLE_ALTERNATIVE_BUFFER = 'l' } |
Enumerates different buffer commands. More... | |
enum class | EraseCommand { ERASE_CURSOR_END , ERASE_CURSOR_BEGIN , ERASE_SCREEN , ERASE_LINE , ERASE_LINE_CURSOR_END , ERASE_LINE_CURSOR_BEGIN } |
Enumerates different erase commands. More... | |
enum class | Style : std::uint8_t { NONE = 0 , BOLD = 1 << 0 , DIM = 1 << 1 , ITALIC = 1 << 2 , UNDERLINE = 1 << 3 , BLINK = 1 << 4 , INVERSE = 1 << 5 , HIDDEN = 1 << 6 , STRIKETHOUGH = 1 << 7 } |
enum class | ColorSupport { COLOR16 , COLOR256 , TRUE_COLOR } |
Enumerates the levels of color support for the terminal. More... | |
Functions | |
std::ostream & | operator<< (std::ostream &stream, ColorBG bg) |
std::ostream & | operator<< (std::ostream &stream, ColorFG fg) |
std::ostream & | reset_bg (std::ostream &stream) |
Resets background color to default. | |
std::ostream & | reset_fg (std::ostream &stream) |
Resets foreground color to default. | |
std::ostream & | reset_color (std::ostream &stream) |
Resets foreground and background color to default. | |
std::ostream & | operator<< (std::ostream &stream, CursorPos pos) |
std::ostream & | operator<< (std::ostream &stream, CursorMove move) |
std::ostream & | operator<< (std::ostream &stream, CursorCommand cmd) |
std::ostream & | operator<< (std::ostream &stream, BufferCommand cmd) |
std::ostream & | operator<< (std::ostream &stream, EraseCommand cmd) |
constexpr Style | operator+ (Style a, Style b) |
constexpr Style | operator- (Style a, Style b) |
constexpr Style | operator& (Style a, Style b) |
constexpr bool | style_contains (Style style, Style flags) |
Checks if a text style contains certain flags. | |
std::ostream & | operator<< (std::ostream &stream, Style style) |
std::ostream & | reset_all (std::ostream &stream) |
Resets all text styles and colors to default. | |
|
strong |
|
strong |
|
strong |
|
strong |
Enumerates different erase commands.
|
strong |
std::ostream & koutil::term::operator<< | ( | std::ostream & | stream, |
BufferCommand | cmd ) |
std::ostream & koutil::term::operator<< | ( | std::ostream & | stream, |
ColorBG | bg ) |
std::ostream & koutil::term::operator<< | ( | std::ostream & | stream, |
ColorFG | fg ) |
std::ostream & koutil::term::operator<< | ( | std::ostream & | stream, |
CursorCommand | cmd ) |
std::ostream & koutil::term::operator<< | ( | std::ostream & | stream, |
CursorMove | move ) |
std::ostream & koutil::term::operator<< | ( | std::ostream & | stream, |
CursorPos | pos ) |
std::ostream & koutil::term::operator<< | ( | std::ostream & | stream, |
EraseCommand | cmd ) |
std::ostream & koutil::term::operator<< | ( | std::ostream & | stream, |
Style | style ) |
std::ostream & koutil::term::reset_all | ( | std::ostream & | stream | ) |
Resets all text styles and colors to default.
stream | The output stream. |
std::ostream & koutil::term::reset_bg | ( | std::ostream & | stream | ) |
Resets background color to default.
stream | The output stream. |
std::ostream & koutil::term::reset_color | ( | std::ostream & | stream | ) |
Resets foreground and background color to default.
stream | The output stream. |
std::ostream & koutil::term::reset_fg | ( | std::ostream & | stream | ) |
Resets foreground color to default.
stream | The output stream. |