2020-04-03 00:58:50 (UTC-03:00)
Marcel Rodrigues <marcelgmr@gmail.com>
fix glitch when running from the bottom line of the terminal
diff --git a/mpb.c b/mpb.c index 7b7e02d..b5594c1 100644 --- a/mpb.c +++ b/mpb.c @@ -93,6 +93,8 @@ main(int argc, char *argv[]) if (argtotal != NULL) total = (unsigned) atol(argtotal); opt_showbar = total > 0; + if (opt_showbar) + printf("\n\x1B[A"); print_progress(opt_width, 0, opt_showbar, opt_showspinner, 0); count = 0; while (scanf("%4096s", line) != EOF) {