PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
kcenon::pacs::samples::colors Namespace Reference

ANSI escape codes for terminal colors. More...

Variables

constexpr const char * reset = "\033[0m"
 Reset all formatting.
 
constexpr const char * bold = "\033[1m"
 Bold text.
 
constexpr const char * dim = "\033[2m"
 Dim/faint text.
 
constexpr const char * black = "\033[30m"
 Standard colors.
 
constexpr const char * red = "\033[31m"
 
constexpr const char * green = "\033[32m"
 
constexpr const char * yellow = "\033[33m"
 
constexpr const char * blue = "\033[34m"
 
constexpr const char * magenta = "\033[35m"
 
constexpr const char * cyan = "\033[36m"
 
constexpr const char * white = "\033[37m"
 
constexpr const char * bright_red = "\033[91m"
 Bright/bold colors.
 
constexpr const char * bright_green = "\033[92m"
 
constexpr const char * bright_yellow = "\033[93m"
 
constexpr const char * bright_blue = "\033[94m"
 
constexpr const char * bright_magenta = "\033[95m"
 
constexpr const char * bright_cyan = "\033[96m"
 
constexpr const char * bright_white = "\033[97m"
 
constexpr const char * bg_red = "\033[41m"
 Background colors.
 
constexpr const char * bg_green = "\033[42m"
 
constexpr const char * bg_yellow = "\033[43m"
 
constexpr const char * bg_blue = "\033[44m"
 

Detailed Description

ANSI escape codes for terminal colors.

These codes work on most modern terminals including:

  • Linux terminals (GNOME Terminal, Konsole, etc.)
  • macOS Terminal and iTerm2
  • Windows Terminal and PowerShell (Windows 10+)

For older Windows cmd.exe, colors may not display correctly.

Variable Documentation

◆ bg_blue

const char* kcenon::pacs::samples::colors::bg_blue = "\033[44m"
constexpr

Definition at line 67 of file console_utils.h.

◆ bg_green

const char* kcenon::pacs::samples::colors::bg_green = "\033[42m"
constexpr

Definition at line 65 of file console_utils.h.

◆ bg_red

const char* kcenon::pacs::samples::colors::bg_red = "\033[41m"
constexpr

Background colors.

Definition at line 64 of file console_utils.h.

◆ bg_yellow

const char* kcenon::pacs::samples::colors::bg_yellow = "\033[43m"
constexpr

Definition at line 66 of file console_utils.h.

◆ black

const char* kcenon::pacs::samples::colors::black = "\033[30m"
constexpr

Standard colors.

Definition at line 45 of file console_utils.h.

◆ blue

const char* kcenon::pacs::samples::colors::blue = "\033[34m"
constexpr

Definition at line 49 of file console_utils.h.

Referenced by main(), and kcenon::pacs::samples::print_section().

◆ bold

const char* kcenon::pacs::samples::colors::bold = "\033[1m"
constexpr

◆ bright_blue

const char* kcenon::pacs::samples::colors::bright_blue = "\033[94m"
constexpr

Definition at line 58 of file console_utils.h.

◆ bright_cyan

const char* kcenon::pacs::samples::colors::bright_cyan = "\033[96m"
constexpr

Definition at line 60 of file console_utils.h.

◆ bright_green

const char* kcenon::pacs::samples::colors::bright_green = "\033[92m"
constexpr

Definition at line 56 of file console_utils.h.

◆ bright_magenta

const char* kcenon::pacs::samples::colors::bright_magenta = "\033[95m"
constexpr

Definition at line 59 of file console_utils.h.

◆ bright_red

const char* kcenon::pacs::samples::colors::bright_red = "\033[91m"
constexpr

Bright/bold colors.

Definition at line 55 of file console_utils.h.

◆ bright_white

const char* kcenon::pacs::samples::colors::bright_white = "\033[97m"
constexpr

Definition at line 61 of file console_utils.h.

◆ bright_yellow

const char* kcenon::pacs::samples::colors::bright_yellow = "\033[93m"
constexpr

Definition at line 57 of file console_utils.h.

◆ cyan

const char* kcenon::pacs::samples::colors::cyan = "\033[36m"
constexpr

◆ dim

const char* kcenon::pacs::samples::colors::dim = "\033[2m"
constexpr

◆ green

const char* kcenon::pacs::samples::colors::green = "\033[32m"
constexpr

◆ magenta

const char* kcenon::pacs::samples::colors::magenta = "\033[35m"
constexpr

Definition at line 50 of file console_utils.h.

Referenced by kcenon::pacs::samples::print_table().

◆ red

const char* kcenon::pacs::samples::colors::red = "\033[31m"
constexpr

Definition at line 46 of file console_utils.h.

Referenced by main(), and kcenon::pacs::samples::print_error().

◆ reset

◆ white

const char* kcenon::pacs::samples::colors::white = "\033[37m"
constexpr

Definition at line 52 of file console_utils.h.

◆ yellow

const char* kcenon::pacs::samples::colors::yellow = "\033[33m"
constexpr