koutil
Loading...
Searching...
No Matches
color_operators.h File Reference
#include "koutil/term/color.h"
#include "koutil/util/utils.h"
#include <cstddef>
#include <ostream>
#include <string_view>

Go to the source code of this file.

Namespaces

namespace  koutil
 
namespace  koutil::term
 
namespace  koutil::term::color_literals
 

Functions

consteval Color koutil::term::color_literals::operator""_color (const char *str, std::size_t size)
 Creates a Color object from a hexadecimal string.
 
consteval ColorBG koutil::term::color_literals::operator""_bg (const char *str, std::size_t size)
 Creates a ColorBG object from a hexadecimal string.
 
consteval ColorFG koutil::term::color_literals::operator""_fg (const char *str, std::size_t size)
 Creates a ColorFG object from a hexadecimal string.
 
std::ostream & koutil::term::operator<< (std::ostream &stream, ColorBG bg)
 
std::ostream & koutil::term::operator<< (std::ostream &stream, ColorFG fg)
 
std::ostream & koutil::term::reset_bg (std::ostream &stream)
 Resets background color to default.
 
std::ostream & koutil::term::reset_fg (std::ostream &stream)
 Resets foreground color to default.
 
std::ostream & koutil::term::reset_color (std::ostream &stream)
 Resets foreground and background color to default.