nngn
Loading...
Searching...
No Matches
const.h
Go to the documentation of this file.
1#ifndef NNGN_GRAPHICS_TERMINAL_CONST_H
2#define NNGN_GRAPHICS_TERMINAL_CONST_H
3
4#include "utils/literals.h"
5
6namespace nngn::term {
7
8using namespace nngn::literals;
9
12 static constexpr auto clear = "\x1b[2J"_s;
13 static constexpr auto pos = "\x1b[H"_s;
14};
15
18 static constexpr auto show_cursor = "\x1b[?25h"_s;
19 static constexpr auto hide_cursor = "\x1b[?25l"_s;
20};
21
24 static constexpr auto reset_color = "\x1b[39;49m"_s;
25 static constexpr auto bg_color_24bit = "\x1b[48;2;"_s;
26};
27
28}
29
30#endif
pos
Definition lua_audio.cpp:17
Definition literals.h:9
Definition const.h:6
ANSI escape code sequences.
Definition const.h:23
static constexpr auto bg_color_24bit
Definition const.h:25
static constexpr auto reset_color
Definition const.h:24
Character sequences to control a VT100 terminal.
Definition const.h:11
static constexpr auto clear
Definition const.h:12
Character sequences to control a VT520 terminal.
Definition const.h:17
static constexpr auto show_cursor
Definition const.h:18
static constexpr auto hide_cursor
Definition const.h:19