An optimization from Vladimir

This commit is contained in:
Eric Andersen 2001-04-06 16:02:22 +00:00
parent 250a221768
commit aa21e0f913
2 changed files with 4 additions and 8 deletions

6
more.c
View File

@ -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;

View File

@ -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;