Hide the cursor while displaying progress

The cursor interferes with our fancy redraw
and progress, so hide it while we are doing that.

Closes: #2455
Approved by: alexlarsson
This commit is contained in:
Matthias Clasen
2018-12-21 01:34:34 -05:00
committed by Atomic Bot
parent e49822653f
commit c2e9dc2832

View File

@@ -960,7 +960,10 @@ transaction_ready (FlatpakTransaction *transaction)
self->table_height += 3; /* 2 for the added lines and one for the newline from the user after the prompt */
if (flatpak_fancy_output ())
redraw (self);
{
g_print (FLATPAK_ANSI_HIDE_CURSOR);
redraw (self);
}
return TRUE;
}
@@ -1066,6 +1069,9 @@ flatpak_cli_transaction_run (FlatpakTransaction *transaction,
res = flatpak_transaction_run (transaction, cancellable, &local_error);
if (flatpak_fancy_output ())
g_print (FLATPAK_ANSI_SHOW_CURSOR);
if (res && self->n_ops > 0)
{
const char *text;