bob.hpp
Loading...
Searching...
No Matches
bob::term Namespace Reference

Terminal related constants and functions. More...

Classes

struct  TermSize
 Terminal size in characters. More...
 

Functions

TermSize size ()
 Returns the size of the terminal in characters.
 

Variables

Reset Style
const std::string RESET = "\033[0m"
 
Regular Colors
const std::string BLACK = "\033[30m"
 Black text.
 
const std::string RED = "\033[31m"
 Red text.
 
const std::string GREEN = "\033[32m"
 Green text.
 
const std::string YELLOW = "\033[33m"
 Yellow text.
 
const std::string BLUE = "\033[34m"
 Blue text.
 
const std::string MAGENTA = "\033[35m"
 Magenta text.
 
const std::string CYAN = "\033[36m"
 Cyan text.
 
const std::string WHITE = "\033[37m"
 
Bright Colors
const std::string BRIGHT_BLACK = "\033[90m"
 Bright black text.
 
const std::string BRIGHT_RED = "\033[91m"
 Bright red text.
 
const std::string BRIGHT_GREEN = "\033[92m"
 Bright green text.
 
const std::string BRIGHT_YELLOW = "\033[93m"
 Bright yellow text.
 
const std::string BRIGHT_BLUE = "\033[94m"
 Bright blue text.
 
const std::string BRIGHT_MAGENTA = "\033[95m"
 Bright magenta text.
 
const std::string BRIGHT_CYAN = "\033[96m"
 Bright cyan text.
 
const std::string BRIGHT_WHITE = "\033[97m"
 
Background Colors
const std::string BG_BLACK = "\033[40m"
 Black background.
 
const std::string BG_RED = "\033[41m"
 Red background.
 
const std::string BG_GREEN = "\033[42m"
 Green background.
 
const std::string BG_YELLOW = "\033[43m"
 Yellow background.
 
const std::string BG_BLUE = "\033[44m"
 Blue background.
 
const std::string BG_MAGENTA = "\033[45m"
 Magenta background.
 
const std::string BG_CYAN = "\033[46m"
 Cyan background.
 
const std::string BG_WHITE = "\033[47m"
 
Bright Backgrounds
const std::string BG_BRIGHT_BLACK = "\033[100m"
 Bright black background.
 
const std::string BG_BRIGHT_RED = "\033[101m"
 Bright red background.
 
const std::string BG_BRIGHT_GREEN = "\033[102m"
 Bright green background.
 
const std::string BG_BRIGHT_YELLOW = "\033[103m"
 Bright yellow background.
 
const std::string BG_BRIGHT_BLUE = "\033[104m"
 Bright blue background.
 
const std::string BG_BRIGHT_MAGENTA = "\033[105m"
 Bright magenta background.
 
const std::string BG_BRIGHT_CYAN = "\033[106m"
 Bright cyan background.
 
const std::string BG_BRIGHT_WHITE = "\033[107m"
 
Text Styles
const std::string BOLD = "\033[1m"
 Bold style.
 
const std::string DIM = "\033[2m"
 Dim style.
 
const std::string UNDERLINE = "\033[4m"
 Underline style.
 
const std::string BLINK = "\033[5m"
 Blink style.
 
const std::string INVERT = "\033[7m"
 Invert style.
 
const std::string HIDDEN = "\033[8m"
 

Detailed Description

Terminal related constants and functions.

Variable Documentation

◆ BG_BRIGHT_WHITE

const std::string bob::term::BG_BRIGHT_WHITE = "\033[107m"

Bright white background

◆ BG_WHITE

const std::string bob::term::BG_WHITE = "\033[47m"

White background

◆ BRIGHT_WHITE

const std::string bob::term::BRIGHT_WHITE = "\033[97m"

Bright white text

◆ HIDDEN

const std::string bob::term::HIDDEN = "\033[8m"

Hidden style

◆ RESET

const std::string bob::term::RESET = "\033[0m"

Reset style

◆ WHITE

const std::string bob::term::WHITE = "\033[37m"

White text