Blame SOURCES/0173-Don-t-clear-screen-when-debugging-is-enabled.patch

5593c8
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
5593c8
From: =?UTF-8?q?Renaud=20M=C3=A9trich?= <rmetrich@redhat.com>
5593c8
Date: Sat, 23 Nov 2019 16:23:54 +0100
5593c8
Subject: [PATCH] Don't clear screen when debugging is enabled
5593c8
MIME-Version: 1.0
5593c8
Content-Type: text/plain; charset=UTF-8
5593c8
Content-Transfer-Encoding: 8bit
5593c8
5593c8
Signed-off-by: Renaud Métrich <rmetrich@redhat.com>
5593c8
---
5593c8
 grub-core/normal/main.c | 3 ++-
5593c8
 1 file changed, 2 insertions(+), 1 deletion(-)
5593c8
5593c8
diff --git a/grub-core/normal/main.c b/grub-core/normal/main.c
d3c3ab
index e349303c29b..155bf366da2 100644
5593c8
--- a/grub-core/normal/main.c
5593c8
+++ b/grub-core/normal/main.c
5593c8
@@ -210,7 +210,8 @@ void
5593c8
 grub_normal_init_page (struct grub_term_output *term,
5593c8
 		       int y __attribute__((__unused__)))
5593c8
 {
5593c8
-  grub_term_cls (term);
5593c8
+  if (! grub_debug_is_enabled ())
5593c8
+    grub_term_cls (term);
5593c8
 
5593c8
 #if 0
5593c8
   grub_ssize_t msg_len;