]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
ply-text-display: Only skip clearing the screen when tracing to a terminal
authorHans de Goede <hdegoede@redhat.com>
Sat, 27 Mar 2021 12:22:45 +0000 (13:22 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 29 Mar 2021 07:25:29 +0000 (09:25 +0200)
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>
src/libply-splash-core/ply-text-display.c

index 7bf6e06d62e628dab12f9d0fa51e68ce990d6339..fc41645ae3544aecea96c90df24f997d7b75eea9 100644 (file)
@@ -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,