nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

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

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