mirror of
https://github.com/flatpak/flatpak.git
synced 2026-02-02 12:01:32 -05:00
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:
committed by
Atomic Bot
parent
e49822653f
commit
c2e9dc2832
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user