diff options
Diffstat (limited to 'util-linux')
| -rw-r--r-- | util-linux/more.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/util-linux/more.c b/util-linux/more.c index f4018f5d1..e3a1d8656 100644 --- a/util-linux/more.c +++ b/util-linux/more.c | |||
| @@ -84,11 +84,8 @@ extern int more_main(int argc, char **argv) | |||
| 84 | new_settings = initial_settings; | 84 | new_settings = initial_settings; |
| 85 | new_settings.c_lflag &= ~ICANON; | 85 | new_settings.c_lflag &= ~ICANON; |
| 86 | new_settings.c_lflag &= ~ECHO; | 86 | new_settings.c_lflag &= ~ECHO; |
| 87 | #ifndef linux | ||
| 88 | /* Hmm, in linux c_cc[] not parsed if set ~ICANON */ | ||
| 89 | new_settings.c_cc[VMIN] = 1; | 87 | new_settings.c_cc[VMIN] = 1; |
| 90 | new_settings.c_cc[VTIME] = 0; | 88 | new_settings.c_cc[VTIME] = 0; |
| 91 | #endif | ||
| 92 | setTermSettings(fileno(cin), &new_settings); | 89 | setTermSettings(fileno(cin), &new_settings); |
| 93 | atexit(set_tty_to_initial_mode); | 90 | atexit(set_tty_to_initial_mode); |
| 94 | (void) signal(SIGINT, gotsig); | 91 | (void) signal(SIGINT, gotsig); |
