NoTeX 1.0.0
A modern noteworthy LaTeX template
Loading...
Searching...
No Matches
ansi::text Namespace Reference

Namespace containing text styling escape sequences. More...

Variables

constexpr std::string_view bold = "\033[1m"
 Make text appear bold/bright.
constexpr std::string_view dim = "\033[2m"
 Reduce text intensity (dim/faint).
constexpr std::string_view italic = "\033[3m"
 Display text in italic style.
constexpr std::string_view underline = "\033[4m"
 Underline text.
constexpr std::string_view blink = "\033[5m"
 Make text blink (if supported by terminal).
constexpr std::string_view reverse = "\033[7m"
 Reverse video: swap foreground and background colors.
constexpr std::string_view hidden = "\033[8m"
 Conceal text (useful for passwords).
constexpr std::string_view strikethrough = "\033[9m"
 Cross out / strike through text.

Detailed Description

Namespace containing text styling escape sequences.

Provides ANSI escape codes for text formatting options such as bold, dim, italic, underline, and other text decorations.

Variable Documentation

◆ blink

std::string_view ansi::text::blink = "\033[5m"
constexpr

Make text blink (if supported by terminal).

Definition at line 48 of file constants.hpp.

◆ bold

std::string_view ansi::text::bold = "\033[1m"
constexpr

Make text appear bold/bright.

Definition at line 40 of file constants.hpp.

◆ dim

std::string_view ansi::text::dim = "\033[2m"
constexpr

Reduce text intensity (dim/faint).

Definition at line 42 of file constants.hpp.

Referenced by init_logging().

◆ hidden

std::string_view ansi::text::hidden = "\033[8m"
constexpr

Conceal text (useful for passwords).

Definition at line 52 of file constants.hpp.

◆ italic

std::string_view ansi::text::italic = "\033[3m"
constexpr

Display text in italic style.

Definition at line 44 of file constants.hpp.

◆ reverse

std::string_view ansi::text::reverse = "\033[7m"
constexpr

Reverse video: swap foreground and background colors.

Definition at line 50 of file constants.hpp.

◆ strikethrough

std::string_view ansi::text::strikethrough = "\033[9m"
constexpr

Cross out / strike through text.

Definition at line 54 of file constants.hpp.

◆ underline

std::string_view ansi::text::underline = "\033[4m"
constexpr

Underline text.

Definition at line 46 of file constants.hpp.