koutil
|
#include "koutil/util/utils.h"
#include <array>
#include <cstdint>
#include <ostream>
#include <string_view>
#include <type_traits>
Go to the source code of this file.
Namespaces | |
namespace | koutil |
namespace | koutil::term |
Enumerations | |
enum class | koutil::term::Style : std::uint8_t { koutil::term::NONE = 0 , koutil::term::BOLD = 1 << 0 , koutil::term::DIM = 1 << 1 , koutil::term::ITALIC = 1 << 2 , koutil::term::UNDERLINE = 1 << 3 , koutil::term::BLINK = 1 << 4 , koutil::term::INVERSE = 1 << 5 , koutil::term::HIDDEN = 1 << 6 , koutil::term::STRIKETHOUGH = 1 << 7 } |
Functions | |
constexpr Style | koutil::term::operator+ (Style a, Style b) |
constexpr Style | koutil::term::operator- (Style a, Style b) |
constexpr Style | koutil::term::operator& (Style a, Style b) |
constexpr bool | koutil::term::style_contains (Style style, Style flags) |
Checks if a text style contains certain flags. | |
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. | |