From 6e8861b5f139cde297a95e785e7c616cf129df80 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 15 Jan 2012 23:00:13 +0100 Subject: *: better comments on termios manipulations. No code changes. Signed-off-by: Denys Vlasenko --- util-linux/more.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'util-linux') 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) cin_fileno = fileno(cin); getTermSettings(cin_fileno, &initial_settings); new_settings = initial_settings; - new_settings.c_lflag &= ~ICANON; - new_settings.c_lflag &= ~ECHO; + new_settings.c_lflag &= ~(ICANON | ECHO); new_settings.c_cc[VMIN] = 1; new_settings.c_cc[VTIME] = 0; setTermSettings(cin_fileno, &new_settings); -- cgit v1.2.3