diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-01-15 23:00:13 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-01-15 23:00:13 +0100 |
commit | 6e8861b5f139cde297a95e785e7c616cf129df80 (patch) | |
tree | 4f4ce792bd441ac9541033e7f6899bedcf2b6d4a /util-linux | |
parent | 7ce209b9d4f6053b7e6d07dec66e382bc3614c35 (diff) | |
download | busybox-w32-6e8861b5f139cde297a95e785e7c616cf129df80.tar.gz busybox-w32-6e8861b5f139cde297a95e785e7c616cf129df80.tar.bz2 busybox-w32-6e8861b5f139cde297a95e785e7c616cf129df80.zip |
*: better comments on termios manipulations. No code changes.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/more.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/util-linux/more.c b/util-linux/more.c index efceb71ec..359571397 100644 --- a/util-linux/more.c +++ b/util-linux/more.c | |||
@@ -85,8 +85,7 @@ int more_main(int argc UNUSED_PARAM, char **argv) | |||
85 | cin_fileno = fileno(cin); | 85 | cin_fileno = fileno(cin); |
86 | getTermSettings(cin_fileno, &initial_settings); | 86 | getTermSettings(cin_fileno, &initial_settings); |
87 | new_settings = initial_settings; | 87 | new_settings = initial_settings; |
88 | new_settings.c_lflag &= ~ICANON; | 88 | new_settings.c_lflag &= ~(ICANON | ECHO); |
89 | new_settings.c_lflag &= ~ECHO; | ||
90 | new_settings.c_cc[VMIN] = 1; | 89 | new_settings.c_cc[VMIN] = 1; |
91 | new_settings.c_cc[VTIME] = 0; | 90 | new_settings.c_cc[VTIME] = 0; |
92 | setTermSettings(cin_fileno, &new_settings); | 91 | setTermSettings(cin_fileno, &new_settings); |