aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-04-06 16:02:22 +0000
committerEric Andersen <andersen@codepoet.org>2001-04-06 16:02:22 +0000
commitaa21e0f91332afe909723b841b838ebe562df71e (patch)
tree291adba05988b11dbd5ff2b7373013ec9ca6fa8a
parent250a22176815303f9af072a11278108f7767282b (diff)
downloadbusybox-aa21e0f91332afe909723b841b838ebe562df71e.tar.gz
An optimization from Vladimir
-rw-r--r--more.c6
-rw-r--r--util-linux/more.c6
2 files changed, 4 insertions, 8 deletions
diff --git a/more.c b/more.c
index 1d918cf5c..732396f03 100644
--- a/more.c
+++ b/more.c
@@ -154,12 +154,10 @@ extern int more_main(int argc, char **argv)
#ifdef BB_FEATURE_USE_TERMIOS
/* Erase the "More" message */
+ putc('\r', stdout);
while (--len >= 0)
- putc('\b', stdout);
- while (++len <= terminal_width)
putc(' ', stdout);
- while (--len >= 0)
- putc('\b', stdout);
+ putc('\r', stdout);
fflush(stdout);
#endif
len=0;
diff --git a/util-linux/more.c b/util-linux/more.c
index 1d918cf5c..732396f03 100644
--- a/util-linux/more.c
+++ b/util-linux/more.c
@@ -154,12 +154,10 @@ extern int more_main(int argc, char **argv)
#ifdef BB_FEATURE_USE_TERMIOS
/* Erase the "More" message */
+ putc('\r', stdout);
while (--len >= 0)
- putc('\b', stdout);
- while (++len <= terminal_width)
putc(' ', stdout);
- while (--len >= 0)
- putc('\b', stdout);
+ putc('\r', stdout);
fflush(stdout);
#endif
len=0;