summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2021-03-27 13:22:45 +0100
committerHans de Goede <hdegoede@redhat.com>2021-03-29 09:25:29 +0200
commit9ef171f73303c78758b3f3b64133a38cd31decad (patch)
treed6ea025e74b82acaf7a65049b925c5a6f264b8b6
parent8291d668aeab257ed6b74c81128b011715157c27 (diff)
ply-text-display: Only skip clearing the screen when tracing to a terminal
When the user has chosen to enable tracing to a file, so that the terminal output stays the same as when not tracing, ply_text_display_clear_screen () should still clear the screen, as it does when not tracing. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r--src/libply-splash-core/ply-text-display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libply-splash-core/ply-text-display.c b/src/libply-splash-core/ply-text-display.c
index 7bf6e06d..fc41645a 100644
--- a/src/libply-splash-core/ply-text-display.c
+++ b/src/libply-splash-core/ply-text-display.c
@@ -150,7 +150,7 @@ ply_text_display_set_cursor_position (ply_text_display_t *display,
void
ply_text_display_clear_screen (ply_text_display_t *display)
{
- if (ply_is_tracing ())
+ if (ply_is_tracing_to_terminal ())
return;
ply_terminal_write (display->terminal,