Terminal++ 3.1.0.4
A C++ library for interacting with ANSI terminal windows
Loading...
Searching...
No Matches
ascii.hpp
1#pragma once
2#include "terminalpp/core.hpp"
3
4//* =========================================================================
7//* =========================================================================
8namespace terminalpp::detail::ascii {
9
10// Source: http://ascii-table.com/ascii.php
11
12// clang-format off
13// Control Code Block
14inline constexpr byte nul = 0; // NULL
15inline constexpr byte soh = 1; // Start Of Header
16inline constexpr byte stx = 2; // Start Of Text
17inline constexpr byte etx = 3; // End Of Text
18inline constexpr byte eot = 4; // End Of Transmission
19inline constexpr byte enq = 5; // Enquiry
20inline constexpr byte ack = 6; // Acknowledge
21inline constexpr byte bel = 7; // Bell
22inline constexpr byte bs = 8; // Backspace
23inline constexpr byte ht = 9; // Horizontal Tabulation
24inline constexpr byte lf = 10; // Line Feed
25inline constexpr byte vt = 11; // Vertical Tabulation
26inline constexpr byte ff = 12; // Form Feed
27inline constexpr byte cr = 13; // Carriage Return
28inline constexpr byte so = 14; // Shift Out
29inline constexpr byte si = 15; // Shift In
30inline constexpr byte dle = 16; // Data Link Escape
31inline constexpr byte dc1 = 17; // Device Control 1 (XON)
32inline constexpr byte dc2 = 18; // Device Control 2
33inline constexpr byte dc3 = 19; // Device Control 3 (XOFF)
34inline constexpr byte dc4 = 20; // Device Control 4
35inline constexpr byte nak = 21; // Negative Acknowledge
36inline constexpr byte syn = 22; // Synchronous Idle
37inline constexpr byte etb = 23; // End Of Transmission Block
38inline constexpr byte can = 24; // Cancel
39inline constexpr byte em = 25; // End Of Medium
40inline constexpr byte sub = 26; // Substitute
41inline constexpr byte esc = 27; // Escape
42inline constexpr byte fs = 28; // File Separator
43inline constexpr byte gs = 29; // Group Separator
44inline constexpr byte rs = 30; // Record Separator
45inline constexpr byte us = 31; // Unit Separator
46
47// Printable Character Block
48inline constexpr byte space = 32; // [SPACE]
49inline constexpr byte exclamation_mark = 33; // !
50inline constexpr byte quotes = 34; // "
51inline constexpr byte hash = 35; // #
52inline constexpr byte dollar = 36; // $
53inline constexpr byte percent = 37; // %
54inline constexpr byte ampersand = 38; // %
55inline constexpr byte apostrophe = 39; // '
56inline constexpr byte open_parenthesis = 40; // (
57inline constexpr byte close_parenthesis = 41; // )
58inline constexpr byte asterisk = 42; // *
59inline constexpr byte plus = 43; // +
60inline constexpr byte comma = 44; // ,
61inline constexpr byte minus = 45; // -
62inline constexpr byte full_stop = 46; // .
63inline constexpr byte slash = 47; // /
64inline constexpr byte zero = 48; // 0
65inline constexpr byte one = 49; // 1
66inline constexpr byte two = 50; // 2
67inline constexpr byte three = 51; // 3
68inline constexpr byte four = 52; // 4
69inline constexpr byte five = 53; // 5
70inline constexpr byte six = 54; // 6
71inline constexpr byte seven = 55; // 7
72inline constexpr byte eight = 56; // 8
73inline constexpr byte nine = 57; // 9
74inline constexpr byte colon = 58; // :
75inline constexpr byte semi_colon = 59; // ;
76inline constexpr byte less_than = 60; // <
77inline constexpr byte equals = 61; // =
78inline constexpr byte greater_than = 62; // >
79inline constexpr byte question_mark = 63; // ?
80inline constexpr byte at = 64; // @
81inline constexpr byte uppercase_a = 65; // A
82inline constexpr byte uppercase_b = 66; // B
83inline constexpr byte uppercase_c = 67; // C
84inline constexpr byte uppercase_d = 68; // D
85inline constexpr byte uppercase_e = 69; // E
86inline constexpr byte uppercase_f = 70; // F
87inline constexpr byte uppercase_g = 71; // G
88inline constexpr byte uppercase_h = 72; // H
89inline constexpr byte uppercase_i = 73; // I
90inline constexpr byte uppercase_j = 74; // J
91inline constexpr byte uppercase_k = 75; // K
92inline constexpr byte uppercase_l = 76; // L
93inline constexpr byte uppercase_m = 77; // M
94inline constexpr byte uppercase_n = 78; // N
95inline constexpr byte uppercase_o = 79; // O
96inline constexpr byte uppercase_p = 80; // P
97inline constexpr byte uppercase_q = 81; // Q
98inline constexpr byte uppercase_r = 82; // R
99inline constexpr byte uppercase_s = 83; // S
100inline constexpr byte uppercase_t = 84; // T
101inline constexpr byte uppercase_u = 85; // U
102inline constexpr byte uppercase_v = 86; // V
103inline constexpr byte uppercase_w = 87; // W
104inline constexpr byte uppercase_x = 88; // X
105inline constexpr byte uppercase_y = 89; // Y
106inline constexpr byte uppercase_z = 90; // Z
107inline constexpr byte open_bracket = 91; // [
108inline constexpr byte backslash = 92; // [\]
109inline constexpr byte close_bracket = 93; // ]
110inline constexpr byte caret = 94; // ^
111inline constexpr byte underscore = 95; // _
112inline constexpr byte grave = 96; // `
113inline constexpr byte lowercase_a = 97; // a
114inline constexpr byte lowercase_b = 98; // b
115inline constexpr byte lowercase_c = 99; // c
116inline constexpr byte lowercase_d = 100; // d
117inline constexpr byte lowercase_e = 101; // e
118inline constexpr byte lowercase_f = 102; // f
119inline constexpr byte lowercase_g = 103; // g
120inline constexpr byte lowercase_h = 104; // h
121inline constexpr byte lowercase_i = 105; // i
122inline constexpr byte lowercase_j = 106; // j
123inline constexpr byte lowercase_k = 107; // k
124inline constexpr byte lowercase_l = 108; // l
125inline constexpr byte lowercase_m = 109; // m
126inline constexpr byte lowercase_n = 110; // n
127inline constexpr byte lowercase_o = 111; // o
128inline constexpr byte lowercase_p = 112; // p
129inline constexpr byte lowercase_q = 113; // q
130inline constexpr byte lowercase_r = 114; // r
131inline constexpr byte lowercase_s = 115; // s
132inline constexpr byte lowercase_t = 116; // t
133inline constexpr byte lowercase_u = 117; // u
134inline constexpr byte lowercase_v = 118; // v
135inline constexpr byte lowercase_w = 119; // w
136inline constexpr byte lowercase_x = 120; // x
137inline constexpr byte lowercase_y = 121; // y
138inline constexpr byte lowercase_z = 122; // z
139inline constexpr byte open_brace = 123; // {
140inline constexpr byte pipe = 124; // |
141inline constexpr byte close_brace = 125; // }
142inline constexpr byte tilde = 126; // ~
143inline constexpr byte del = 127; // [DELETE]
144// clang-format on
145
146} // namespace terminalpp::detail::ascii