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