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

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