UNPKG

1.97 kBJavaScriptView Raw
1'use strict';
2
3module.exports = function (Terminal) {
4
5Terminal.charsets = {};
6
7 // DEC Special Character and Line Drawing Set.
8 // http://vt100.net/docs/vt102-ug/table5-13.html
9 // A lot of curses apps use this if they see TERM=xterm.
10 // testing: echo -e '\e(0a\e(B'
11 // The xterm output sometimes seems to conflict with the
12 // reference above. xterm seems in line with the reference
13 // when running vttest however.
14 // The table below now uses xterm's output from vttest.
15 Terminal.charsets.SCLD = { // (0
16 '`': '\u25c6', // '◆'
17 'a': '\u2592', // '▒'
18 'b': '\u0009', // '\t'
19 'c': '\u000c', // '\f'
20 'd': '\u000d', // '\r'
21 'e': '\u000a', // '\n'
22 'f': '\u00b0', // '°'
23 'g': '\u00b1', // '±'
24 'h': '\u2424', // '\u2424' (NL)
25 'i': '\u000b', // '\v'
26 'j': '\u2518', // '┘'
27 'k': '\u2510', // '┐'
28 'l': '\u250c', // '┌'
29 'm': '\u2514', // '└'
30 'n': '\u253c', // '┼'
31 'o': '\u23ba', // '⎺'
32 'p': '\u23bb', // '⎻'
33 'q': '\u2500', // '─'
34 'r': '\u23bc', // '⎼'
35 's': '\u23bd', // '⎽'
36 't': '\u251c', // '├'
37 'u': '\u2524', // '┤'
38 'v': '\u2534', // '┴'
39 'w': '\u252c', // '┬'
40 'x': '\u2502', // '│'
41 'y': '\u2264', // '≤'
42 'z': '\u2265', // '≥'
43 '{': '\u03c0', // 'π'
44 '|': '\u2260', // '≠'
45 '}': '\u00a3', // '£'
46 '~': '\u00b7' // '·'
47 };
48
49 Terminal.charsets.UK = null; // (A
50 Terminal.charsets.US = null; // (B (USASCII)
51 Terminal.charsets.Dutch = null; // (4
52 Terminal.charsets.Finnish = null; // (C or (5
53 Terminal.charsets.French = null; // (R
54 Terminal.charsets.FrenchCanadian = null; // (Q
55 Terminal.charsets.German = null; // (K
56 Terminal.charsets.Italian = null; // (Y
57 Terminal.charsets.NorwegianDanish = null; // (E or (6
58 Terminal.charsets.Spanish = null; // (Z
59 Terminal.charsets.Swedish = null; // (H or (7
60 Terminal.charsets.Swiss = null; // (=
61 Terminal.charsets.ISOLatin = null; // /A
62
63};