diff options
Diffstat (limited to 'chinese/ve')
-rw-r--r-- | chinese/ve/files/patch-term.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chinese/ve/files/patch-term.c b/chinese/ve/files/patch-term.c index 7d915c6dfb45..29f3a625f47a 100644 --- a/chinese/ve/files/patch-term.c +++ b/chinese/ve/files/patch-term.c @@ -41,8 +41,7 @@ - - tty_new.c_lflag &= ~(ICANON | ECHO | RAW | ISIG); - tcsetattr(1, TCSANOW, &tty_new); -+ tty_new.c_lflag &= ~(ICANON | ECHO | ISIG); - restore_tty(); +- restore_tty(); - -#else - @@ -54,7 +53,8 @@ - tty_new.sg_flags &= ~(TANDEM | CBREAK | LCASE | ECHO | CRMOD); -#endif - -- stty(1, &tty_new); ++ tty_new.c_lflag &= ~(ICANON | ECHO | ISIG); + stty(1, &tty_new); -#endif } |