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

Namespace containing screen clearing escape sequences. More...

Variables

constexpr std::string_view screen = "\033[2J"
 Clear entire screen and move cursor to home position.
constexpr std::string_view line = "\033[K"
 Clear from cursor to end of current line.
constexpr std::string_view to_end = "\033[0J"
 Clear from cursor to end of screen.

Detailed Description

Namespace containing screen clearing escape sequences.

Provides ANSI escape codes for clearing portions of the terminal screen or lines.

Variable Documentation

◆ line

std::string_view ansi::clear::line = "\033[K"
constexpr

Clear from cursor to end of current line.

Definition at line 179 of file constants.hpp.

◆ screen

std::string_view ansi::clear::screen = "\033[2J"
constexpr

Clear entire screen and move cursor to home position.

Definition at line 177 of file constants.hpp.

◆ to_end

std::string_view ansi::clear::to_end = "\033[0J"
constexpr

Clear from cursor to end of screen.

Definition at line 181 of file constants.hpp.