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

Namespace containing ANSI escape codes for terminal formatting. More...

Namespaces

namespace  text
 Namespace containing text styling escape sequences.
namespace  color
 Namespace containing text foreground color escape sequences.
namespace  bg
 Namespace containing background color escape sequences.
namespace  cursor
 Namespace containing cursor movement escape sequences.
namespace  clear
 Namespace containing screen clearing escape sequences.

Variables

constexpr std::string_view reset = "\033[0m"
 Reset all text formatting and colors to terminal default.

Detailed Description

Namespace containing ANSI escape codes for terminal formatting.

Provides a structured collection of ANSI/VT100 escape sequences for controlling terminal appearance, including text styling, foreground colors, background colors, cursor movement, and screen operations. All constants are constexpr std::string_view for compile-time evaluation and zero runtime overhead.

Note
ANSI escape sequences work on most modern terminals but may not be supported on all platforms or terminal emulators.

Variable Documentation

◆ reset

std::string_view ansi::reset = "\033[0m"
constexpr

Reset all text formatting and colors to terminal default.

Definition at line 30 of file constants.hpp.

Referenced by notex::ui::error(), init_logging(), notex::ui::step(), notex::ui::success(), and notex::ui::warning().