From: Eric Andersen Date: Fri, 6 Apr 2001 16:02:22 +0000 (-0000) Subject: An optimization from Vladimir X-Git-Tag: 0_51~27 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=aa21e0f91332afe909723b841b838ebe562df71e;p=oweals%2Fbusybox.git An optimization from Vladimir --- 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;