diff options
Diffstat (limited to 'init.c')
-rw-r--r-- | init.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -224,7 +224,7 @@ static void message(int device, char *fmt, ...) | |||
224 | } | 224 | } |
225 | } | 225 | } |
226 | 226 | ||
227 | #define CTRLCHAR(ch) ((ch)&0x1f) | 227 | #define CTRLCHAR(ch) ((ch)-0x40) |
228 | 228 | ||
229 | /* Set terminal settings to reasonable defaults */ | 229 | /* Set terminal settings to reasonable defaults */ |
230 | void set_term(int fd) | 230 | void set_term(int fd) |
@@ -242,7 +242,7 @@ void set_term(int fd) | |||
242 | tty.c_cc[VSTART] = CTRLCHAR('Q'); /* Ctrl-Q */ | 242 | tty.c_cc[VSTART] = CTRLCHAR('Q'); /* Ctrl-Q */ |
243 | tty.c_cc[VSTOP] = CTRLCHAR('S'); /* Ctrl-S */ | 243 | tty.c_cc[VSTOP] = CTRLCHAR('S'); /* Ctrl-S */ |
244 | tty.c_cc[VSUSP] = CTRLCHAR('Z'); /* Ctrl-Z */ | 244 | tty.c_cc[VSUSP] = CTRLCHAR('Z'); /* Ctrl-Z */ |
245 | 245 | ||
246 | /* use line dicipline 0 */ | 246 | /* use line dicipline 0 */ |
247 | tty.c_line = 0; | 247 | tty.c_line = 0; |
248 | 248 | ||