nngn
Loading...
Searching...
No Matches
os.h
Go to the documentation of this file.
1
12#ifndef NNGN_OS_H
13#define NNGN_OS_H
14
15#include "utils/literals.h"
16
17namespace nngn {
18
19using namespace nngn::literals;
20
23 static constexpr auto clear = "\x1b[2J"_s;
24 static constexpr auto pos = "\x1b[H"_s;
25};
26
29 static constexpr auto show_cursor = "\x1b[?25h"_s;
30 static constexpr auto hide_cursor = "\x1b[?25l"_s;
31};
32
35 static constexpr auto reset_color = "\x1b[39;49m"_s;
36 static constexpr auto bg_color_24bit = "\x1b[48;2;"_s;
37};
38
39}
40
41#endif
pos
Definition lua_audio.cpp:17
Definition literals.h:9
Definition audio.cpp:7
ANSI escape code sequences.
Definition os.h:34
static constexpr auto bg_color_24bit
Definition os.h:36
static constexpr auto reset_color
Definition os.h:35
Character sequences to control a VT100 terminal.
Definition os.h:22
static constexpr auto clear
Definition os.h:23
Character sequences to control a VT520 terminal.
Definition os.h:28
static constexpr auto show_cursor
Definition os.h:29
static constexpr auto hide_cursor
Definition os.h:30