]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
text/tribar: Fix ply_boot_splash_hide () not clearing the terminal
authorHans de Goede <hdegoede@redhat.com>
Sat, 27 Mar 2021 15:24:39 +0000 (16:24 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 29 Mar 2021 07:25:29 +0000 (09:25 +0200)
In order to clear the console/terminal back to black again when hiding
the splash, we must restore the original terminal palette, so that
black actually is black before calling ply_text_display_clear_screen ().

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1933378
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
src/plugins/splash/text/plugin.c
src/plugins/splash/tribar/plugin.c

index 7805b9e8b6055f6efcf058549f440580c6584c80..3fa01a772413b1c57bd299d16548f311e2d66c42 100644 (file)
@@ -233,11 +233,10 @@ view_hide (view_t *view)
 
                 terminal = ply_text_display_get_terminal (view->display);
 
+                ply_terminal_reset_colors (terminal);
                 ply_text_display_set_background_color (view->display, PLY_TERMINAL_COLOR_DEFAULT);
                 ply_text_display_clear_screen (view->display);
                 ply_text_display_show_cursor (view->display);
-
-                ply_terminal_reset_colors (terminal);
         }
 }
 
index 1778822a5b0963ad4b74576f7709f83b93e887d7..7c33e1848fc82a5a6a7302428bacfe75c4d3dd50 100644 (file)
@@ -239,11 +239,10 @@ view_hide (view_t *view)
 
                 terminal = ply_text_display_get_terminal (view->display);
 
+                ply_terminal_reset_colors (terminal);
                 ply_text_display_set_background_color (view->display, PLY_TERMINAL_COLOR_DEFAULT);
                 ply_text_display_clear_screen (view->display);
                 ply_text_display_show_cursor (view->display);
-
-                ply_terminal_reset_colors (terminal);
         }
 }