diff --git a/src/pacman/callback.c b/src/pacman/callback.c index 9fd9cc4..e517316 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -58,6 +58,9 @@ static long get_update_timediff(int first_call) long retval = 0; static struct timeval last_time = {0, 0}; + /* hide cursor */ + printf("\033[?25l"); + /* on first call, simply set the last time and return */ if(first_call) { gettimeofday(&last_time, NULL); @@ -145,6 +148,9 @@ static void fill_progress(const int bar_percent, const int disp_percent, putchar('\r'); } fflush(stdout); + + /* reveal cursor */ + printf("\033[?25h"); }