6 * The character sets supported by the terminal. These enable several languages
7 * to be represented within the terminal with only 8-bit encoding. See ISO 2022
8 * for a discussion on character sets. Only VT100 character sets are supported.
10 export const CHARSETS: {[key: string]: {[key: string]: string}} = {};
13 * The default character set, US.
15 export const DEFAULT_CHARSET = CHARSETS['B'];
18 * DEC Special Character and Line Drawing Set.
19 * Reference: http://vt100.net/docs/vt102-ug/table5-13.html
20 * A lot of curses apps use this if they see TERM=xterm.
21 * testing: echo -e '\e(0a\e(B'
22 * The xterm output sometimes seems to conflict with the
23 * reference above. xterm seems in line with the reference
24 * when running vttest however.
25 * The table below now uses xterm's output from vttest.
30 'b': '\u0009', // '\t'
31 'c': '\u000c', // '\f'
32 'd': '\u000d', // '\r'
33 'e': '\u000a', // '\n'
36 'h': '\u2424', // '\u2424' (NL)
37 'i': '\u000b', // '\v'
62 * British character set
64 * Reference: http://vt100.net/docs/vt220-rm/table2-5.html
71 * United States character set
79 * Reference: http://vt100.net/docs/vt220-rm/table2-6.html
94 * Finnish character set
96 * Reference: http://vt100.net/docs/vt220-rm/table2-7.html
112 * French character set
114 * Reference: http://vt100.net/docs/vt220-rm/table2-8.html
129 * French Canadian character set
131 * Reference: http://vt100.net/docs/vt220-rm/table2-9.html
147 * German character set
149 * Reference: http://vt100.net/docs/vt220-rm/table2-10.html
163 * Italian character set
165 * Reference: http://vt100.net/docs/vt220-rm/table2-11.html
181 * Norwegian/Danish character set
183 * Reference: http://vt100.net/docs/vt220-rm/table2-12.html
200 * Spanish character set
202 * Reference: http://vt100.net/docs/vt220-rm/table2-13.html
216 * Swedish character set
218 * Reference: http://vt100.net/docs/vt220-rm/table2-14.html
235 * Swiss character set
237 * Reference: http://vt100.net/docs/vt220-rm/table2-15.html