mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Data Fields | Friends
m::term::Color Struct Reference

Wrapper class to ease the use of terminal colors (foreground and background). More...

#include <terminal.hpp>

Collaboration diagram for m::term::Color:
[legend]

Public Types

enum  color_kind { FG = 0 , BG }
 

Public Member Functions

 Color (color_kind kind, unsigned color)
 

Data Fields

enum m::term::Color::color_kind kind
 
unsigned color
 

Friends

std::ostream & operator<< (std::ostream &out, Color c)
 

Detailed Description

Wrapper class to ease the use of terminal colors (foreground and background).

Definition at line 72 of file terminal.hpp.

Member Enumeration Documentation

◆ color_kind

Enumerator
FG 
BG 

Definition at line 74 of file terminal.hpp.

Constructor & Destructor Documentation

◆ Color()

m::term::Color::Color ( color_kind  kind,
unsigned  color 
)
inlineexplicit

Definition at line 80 of file terminal.hpp.

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  out,
Color  c 
)
friend

Definition at line 82 of file terminal.hpp.

Field Documentation

◆ color

unsigned m::term::Color::color

Definition at line 78 of file terminal.hpp.

◆ kind

enum m::term::Color::color_kind m::term::Color::kind

The documentation for this struct was generated from the following file: