diff options
Diffstat (limited to 'init')
-rw-r--r-- | init/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/init/init.c b/init/init.c index c960fe3..0f6a9bc 100644 --- a/init/init.c +++ b/init/init.c @@ -224,7 +224,7 @@ static void message(int device, char *fmt, ...) } } -#define CTRLCHAR(ch) ((ch)&0x1f) +#define CTRLCHAR(ch) ((ch)-0x40) /* Set terminal settings to reasonable defaults */ void set_term(int fd) @@ -242,7 +242,7 @@ void set_term(int fd) tty.c_cc[VSTART] = CTRLCHAR('Q'); /* Ctrl-Q */ tty.c_cc[VSTOP] = CTRLCHAR('S'); /* Ctrl-S */ tty.c_cc[VSUSP] = CTRLCHAR('Z'); /* Ctrl-Z */ - + /* use line dicipline 0 */ tty.c_line = 0; |