Aprepro  5.0x
terminal_color.h File Reference
#include <cstdint>
#include <limits>
#include <ostream>
#include <sstream>
#include <string>

Go to the source code of this file.

Classes

struct  trmclr::Style
 
struct  trmclr::Attribute
 
struct  trmclr::Foreground
 
struct  trmclr::Background
 

Namespaces

 trmclr
 

Enumerations

enum  trmclr::StyleTypes { trmclr::FOREGROUND, trmclr::ATTRIBUTE, trmclr::BACKGROUND, trmclr::N_STYLE_TYPES }
 

Functions

static Style trmclr::black (trmclr::Foreground::BLACK)
 
static Style trmclr::red (trmclr::Foreground::RED)
 
static Style trmclr::green (trmclr::Foreground::GREEN)
 
static Style trmclr::yellow (trmclr::Foreground::YELLOW)
 
static Style trmclr::blue (trmclr::Foreground::BLUE)
 
static Style trmclr::magenta (trmclr::Foreground::MAGENTA)
 
static Style trmclr::cyan (trmclr::Foreground::CYAN)
 
static Style trmclr::normal (trmclr::Attribute::DEFAULT)
 
std::ostream & trmclr::operator<< (std::ostream &os, const Style &style)
 

Variables

static const uint32_t trmclr::STYLE_SHIFT = std::numeric_limits<uint32_t>::digits / N_STYLE_TYPES