UNPKG

1.01 kBJavaScriptView Raw
1// Most of these are according to this table: http://www.ssicom.org/js/x171166.htm
2// However where nodejs readline diverges, they are adjusted to conform to it
3module.exports = {
4 nomod: {
5 escape: '\u001b'
6 , space: ' ' // actually '\u0020'
7 }
8 , ctrl: {
9 ' ': '\u0000'
10 , 'a': '\u0001'
11 , 'b': '\u0002'
12 , 'c': '\u0003'
13 , 'd': '\u0004'
14 , 'e': '\u0005'
15 , 'f': '\u0006'
16 , 'g': '\u0007'
17 , 'h': '\u0008'
18 , 'i': '\u0009'
19 , 'j': '\u000a'
20 , 'k': '\u000b'
21 , 'm': '\u000c'
22 , 'n': '\u000d'
23 , 'l': '\u000e'
24 , 'o': '\u000f'
25 , 'p': '\u0010'
26 , 'q': '\u0011'
27 , 'r': '\u0012'
28 , 's': '\u0013'
29 , 't': '\u0014'
30 , 'u': '\u0015'
31 , 'v': '\u0016'
32 , 'w': '\u0017'
33 , 'x': '\u0018'
34 , 'y': '\u0019'
35 , 'z': '\u001a'
36 , '[': '\u001b'
37 , '\\':'\u001c'
38 , ']': '\u001d'
39 , '^': '\u001e'
40 , '_': '\u001f'
41
42 , 'space': '\u0000'
43 }
44};