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

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