IOSS  2.0
Ioss_TerminalColor.h File Reference
#include <cstdint>
#include <limits>
#include <ostream>
#include <sstream>
#include <string>

Go to the source code of this file.

Classes

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

Namespaces

 Ioss
 The main namespace for the Ioss library.
 
 Ioss::trmclr
 

Enumerations

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

Functions

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

Variables

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