SERiF v0.0.1a
Stellar Evolution and Rotation in Four Dimensions
Loading...
Searching...
No Matches
serif::utils::misc::terminal Namespace Reference

Enumerations

enum class  ANSIColors : int {
  BLACK = 30 , RED = 31 , GREEN = 32 , YELLOW = 33 ,
  BLUE = 34 , MAGENTA = 35 , CYAN = 36 , WHITE = 37 ,
  BRIGHT_BLACK = 90 , BRIGHT_RED = 91 , BRIGHT_GREEN = 92 , RESET = 0
}
 

Functions

consteval std::string_view resolve_ansi_color (const ANSIColors color) noexcept
 
bool supports_ansi (std::FILE *stream=stdout) noexcept
 

Variables

constexpr std::string_view a_black = resolve_ansi_color(ANSIColors::BLACK)
 
constexpr std::string_view a_red = resolve_ansi_color(ANSIColors::RED)
 
constexpr std::string_view a_green = resolve_ansi_color(ANSIColors::GREEN)
 
constexpr std::string_view a_yellow = resolve_ansi_color(ANSIColors::YELLOW)
 
constexpr std::string_view a_blue = resolve_ansi_color(ANSIColors::BLUE)
 
constexpr std::string_view a_magenta = resolve_ansi_color(ANSIColors::MAGENTA)
 
constexpr std::string_view a_cyan = resolve_ansi_color(ANSIColors::CYAN)
 
constexpr std::string_view a_white = resolve_ansi_color(ANSIColors::WHITE)
 
constexpr std::string_view a_bright_black = resolve_ansi_color(ANSIColors::BRIGHT_BLACK)
 
constexpr std::string_view a_bright_red = resolve_ansi_color(ANSIColors::BRIGHT_RED)
 
constexpr std::string_view a_bright_green = resolve_ansi_color(ANSIColors::BRIGHT_GREEN)
 
constexpr std::string_view a_reset = resolve_ansi_color(ANSIColors::RESET)
 

Enumeration Type Documentation

◆ ANSIColors

Enumerator
BLACK 
RED 
GREEN 
YELLOW 
BLUE 
MAGENTA 
CYAN 
WHITE 
BRIGHT_BLACK 
BRIGHT_RED 
BRIGHT_GREEN 
RESET 

Function Documentation

◆ resolve_ansi_color()

std::string_view serif::utils::misc::terminal::resolve_ansi_color ( const ANSIColors color)
constevalnoexcept

◆ supports_ansi()

bool serif::utils::misc::terminal::supports_ansi ( std::FILE * stream = stdout)
inlinenoexcept

Variable Documentation

◆ a_black

std::string_view serif::utils::misc::terminal::a_black = resolve_ansi_color(ANSIColors::BLACK)
constexpr

◆ a_blue

std::string_view serif::utils::misc::terminal::a_blue = resolve_ansi_color(ANSIColors::BLUE)
constexpr

◆ a_bright_black

std::string_view serif::utils::misc::terminal::a_bright_black = resolve_ansi_color(ANSIColors::BRIGHT_BLACK)
constexpr

◆ a_bright_green

std::string_view serif::utils::misc::terminal::a_bright_green = resolve_ansi_color(ANSIColors::BRIGHT_GREEN)
constexpr

◆ a_bright_red

std::string_view serif::utils::misc::terminal::a_bright_red = resolve_ansi_color(ANSIColors::BRIGHT_RED)
constexpr

◆ a_cyan

std::string_view serif::utils::misc::terminal::a_cyan = resolve_ansi_color(ANSIColors::CYAN)
constexpr

◆ a_green

std::string_view serif::utils::misc::terminal::a_green = resolve_ansi_color(ANSIColors::GREEN)
constexpr

◆ a_magenta

std::string_view serif::utils::misc::terminal::a_magenta = resolve_ansi_color(ANSIColors::MAGENTA)
constexpr

◆ a_red

std::string_view serif::utils::misc::terminal::a_red = resolve_ansi_color(ANSIColors::RED)
constexpr

◆ a_reset

std::string_view serif::utils::misc::terminal::a_reset = resolve_ansi_color(ANSIColors::RESET)
constexpr

◆ a_white

std::string_view serif::utils::misc::terminal::a_white = resolve_ansi_color(ANSIColors::WHITE)
constexpr

◆ a_yellow

std::string_view serif::utils::misc::terminal::a_yellow = resolve_ansi_color(ANSIColors::YELLOW)
constexpr