An optimization from Vladimir
This commit is contained in:
parent
250a221768
commit
aa21e0f913
6
more.c
6
more.c
@ -154,12 +154,10 @@ extern int more_main(int argc, char **argv)
|
|||||||
|
|
||||||
#ifdef BB_FEATURE_USE_TERMIOS
|
#ifdef BB_FEATURE_USE_TERMIOS
|
||||||
/* Erase the "More" message */
|
/* Erase the "More" message */
|
||||||
|
putc('\r', stdout);
|
||||||
while (--len >= 0)
|
while (--len >= 0)
|
||||||
putc('\b', stdout);
|
|
||||||
while (++len <= terminal_width)
|
|
||||||
putc(' ', stdout);
|
putc(' ', stdout);
|
||||||
while (--len >= 0)
|
putc('\r', stdout);
|
||||||
putc('\b', stdout);
|
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
#endif
|
#endif
|
||||||
len=0;
|
len=0;
|
||||||
|
@ -154,12 +154,10 @@ extern int more_main(int argc, char **argv)
|
|||||||
|
|
||||||
#ifdef BB_FEATURE_USE_TERMIOS
|
#ifdef BB_FEATURE_USE_TERMIOS
|
||||||
/* Erase the "More" message */
|
/* Erase the "More" message */
|
||||||
|
putc('\r', stdout);
|
||||||
while (--len >= 0)
|
while (--len >= 0)
|
||||||
putc('\b', stdout);
|
|
||||||
while (++len <= terminal_width)
|
|
||||||
putc(' ', stdout);
|
putc(' ', stdout);
|
||||||
while (--len >= 0)
|
putc('\r', stdout);
|
||||||
putc('\b', stdout);
|
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
#endif
|
#endif
|
||||||
len=0;
|
len=0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user