3 #include "system/angband.h"
6 * Allow use of "ASCII" and "EBCDIC" for "indexes", "digits",
7 * and "Control-Characters".
9 * Note that all "index" values must be "lowercase letters", while
10 * all "digits" must be "digits". Control characters can be made
11 * from any legal characters.
14 constexpr uint8_t A2I(int ch)
19 constexpr char I2A(int i)
21 return static_cast<char>(i + 'a');
24 constexpr uint8_t D2I(int ch)
29 constexpr char I2D(int i)
31 return static_cast<char>(i + '0');
35 constexpr T KTRL(T ch)
37 return static_cast<T>(ch & 0x1F);
40 constexpr char ESCAPE = '\033';