2 * Dropbear - a SSH2 server
4 * Copyright (c) 2002,2003 Matt Johnston
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal
9 * in the Software without restriction, including without limitation the rights
10 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 * copies of the Software, and to permit persons to whom the Software is
12 * furnished to do so, subject to the following conditions:
14 * The above copyright notice and this permission notice shall be included in
15 * all copies or substantial portions of the Software.
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 #include "termcodes.h"
28 const struct TermCode termcodes
[MAX_TERMCODE
+1] = {
30 {0, 0}, /* TTY_OP_END */
31 {VINTR
, TERMCODE_CONTROLCHAR
}, /* control character codes */
32 {VQUIT
, TERMCODE_CONTROLCHAR
},
33 {VERASE
, TERMCODE_CONTROLCHAR
},
34 {VKILL
, TERMCODE_CONTROLCHAR
},
35 {VEOF
, TERMCODE_CONTROLCHAR
},
36 {VEOL
, TERMCODE_CONTROLCHAR
},
37 {VEOL2
, TERMCODE_CONTROLCHAR
},
38 {VSTART
, TERMCODE_CONTROLCHAR
},
39 {VSTOP
, TERMCODE_CONTROLCHAR
},
40 {VSUSP
, TERMCODE_CONTROLCHAR
},
42 {VDSUSP
, TERMCODE_CONTROLCHAR
},
47 {VREPRINT
, TERMCODE_CONTROLCHAR
},
52 {CERASE
, TERMCODE_CONTROLCHAR
},
54 {VWERASE
, TERMCODE_CONTROLCHAR
},
56 {VLNEXT
, TERMCODE_CONTROLCHAR
},
58 {VFLUSH
, TERMCODE_CONTROLCHAR
},
63 {VSWTCH
, TERMCODE_CONTROLCHAR
},
68 {VSTATUS
, TERMCODE_CONTROLCHAR
},
73 {CKILL
, TERMCODE_CONTROLCHAR
},
74 #elif defined(VDISCARD)
75 {VDISCARD
, TERMCODE_CONTROLCHAR
},
90 {IGNPAR
, TERMCODE_INPUT
}, /* input flags */
91 {PARMRK
, TERMCODE_INPUT
},
92 {INPCK
, TERMCODE_INPUT
},
93 {ISTRIP
, TERMCODE_INPUT
},
94 {INLCR
, TERMCODE_INPUT
},
95 {IGNCR
, TERMCODE_INPUT
},
96 {ICRNL
, TERMCODE_INPUT
},
98 {IUCLC
, TERMCODE_INPUT
},
102 {IXON
, TERMCODE_INPUT
},
103 {IXANY
, TERMCODE_INPUT
},
104 {IXOFF
, TERMCODE_INPUT
},
106 {IMAXBEL
, TERMCODE_INPUT
},
118 {ISIG
, TERMCODE_LOCAL
}, /* local flags */
119 {ICANON
, TERMCODE_LOCAL
},
121 {XCASE
, TERMCODE_LOCAL
},
125 {ECHO
, TERMCODE_LOCAL
},
126 {ECHOE
, TERMCODE_LOCAL
},
127 {ECHOK
, TERMCODE_LOCAL
},
128 {ECHONL
, TERMCODE_LOCAL
},
129 {NOFLSH
, TERMCODE_LOCAL
},
130 {TOSTOP
, TERMCODE_LOCAL
},
131 {IEXTEN
, TERMCODE_LOCAL
},
132 {ECHOCTL
, TERMCODE_LOCAL
},
133 {ECHOKE
, TERMCODE_LOCAL
},
135 {PENDIN
, TERMCODE_LOCAL
},
146 {OPOST
, TERMCODE_OUTPUT
}, /* output flags */
148 {OLCUC
, TERMCODE_OUTPUT
},
152 {ONLCR
, TERMCODE_OUTPUT
},
154 {OCRNL
, TERMCODE_OUTPUT
},
159 {ONOCR
, TERMCODE_OUTPUT
},
164 {ONLRET
, TERMCODE_OUTPUT
},
182 {CS7
, TERMCODE_CONTROL
},
183 {CS8
, TERMCODE_CONTROL
},
184 {PARENB
, TERMCODE_CONTROL
},
185 {PARODD
, TERMCODE_CONTROL
}