Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/more.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/util-linux/more.c b/util-linux/more.c
index 20aa37095..909ed286b 100644
--- a/util-linux/more.c
+++ b/util-linux/more.c
@@ -109,6 +109,8 @@ extern int more_main(int argc, char **argv)
cin = fopen("/dev/console", "r");
getTermSettings(fileno(cin), &initial_settings);
new_settings = initial_settings;
+ new_settings.c_cc[VMIN] = 1;
+ new_settings.c_cc[VTIME] = 0;
new_settings.c_lflag &= ~ICANON;
new_settings.c_lflag &= ~ECHO;
setTermSettings(fileno(cin), &new_settings);