diff options
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/term.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mbbsd/term.c b/mbbsd/term.c index 8cac2583..33cb4947 100644 --- a/mbbsd/term.c +++ b/mbbsd/term.c @@ -18,8 +18,15 @@ init_tty(void) /* * tty_new.c_cc[VTIME] = 0; tty_new.c_cc[VMIN] = 1; */ +#if 1 + cfmakeraw(&tty_new); + tty_new.c_cflag &= ~(CSIZE|PARENB); + tty_new.c_cflag |= CS8; + tcsetattr(1, TCSANOW, &tty_new); +#else tcsetattr(1, TCSANOW, &tty_new); system("stty raw -echo"); +#endif } /* ----------------------------------------------------- */ |