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

Namespace containing cursor movement escape sequences. More...

Variables

constexpr std::string_view home = "\033[H"
 Move cursor to home position (top-left corner).
constexpr std::string_view up = "\033[A"
 Move cursor up one line.
constexpr std::string_view down = "\033[B"
 Move cursor down one line.
constexpr std::string_view right = "\033[C"
 Move cursor right one column.
constexpr std::string_view left = "\033[D"
 Move cursor left one column.
constexpr std::string_view save = "\033[s"
 Save current cursor position.
constexpr std::string_view restore = "\033[u"
 Restore previously saved cursor position.

Detailed Description

Namespace containing cursor movement escape sequences.

Provides ANSI escape codes for controlling cursor position and movement within the terminal. Note that not all terminals support all cursor operations.

Variable Documentation

◆ down

std::string_view ansi::cursor::down = "\033[B"
constexpr

Move cursor down one line.

Definition at line 158 of file constants.hpp.

◆ home

std::string_view ansi::cursor::home = "\033[H"
constexpr

Move cursor to home position (top-left corner).

Definition at line 154 of file constants.hpp.

◆ left

std::string_view ansi::cursor::left = "\033[D"
constexpr

Move cursor left one column.

Definition at line 162 of file constants.hpp.

◆ restore

std::string_view ansi::cursor::restore = "\033[u"
constexpr

Restore previously saved cursor position.

Definition at line 166 of file constants.hpp.

◆ right

std::string_view ansi::cursor::right = "\033[C"
constexpr

Move cursor right one column.

Definition at line 160 of file constants.hpp.

◆ save

std::string_view ansi::cursor::save = "\033[s"
constexpr

Save current cursor position.

Definition at line 164 of file constants.hpp.

◆ up

std::string_view ansi::cursor::up = "\033[A"
constexpr

Move cursor up one line.

Definition at line 156 of file constants.hpp.