46968b6
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
46968b6
From: =?UTF-8?q?Renaud=20M=C3=A9trich?= <rmetrich@redhat.com>
46968b6
Date: Sat, 23 Nov 2019 16:23:54 +0100
46968b6
Subject: [PATCH] Don't clear screen when debugging is enabled
46968b6
MIME-Version: 1.0
46968b6
Content-Type: text/plain; charset=UTF-8
46968b6
Content-Transfer-Encoding: 8bit
46968b6
46968b6
Signed-off-by: Renaud M├ętrich <rmetrich@redhat.com>
9fdaa79
[rharwood@redhat.com: rebase fuzz]
9fdaa79
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
46968b6
---
9fdaa79
 grub-core/normal/main.c | 5 +++--
9fdaa79
 1 file changed, 3 insertions(+), 2 deletions(-)
46968b6
46968b6
diff --git a/grub-core/normal/main.c b/grub-core/normal/main.c
e622855
index af9792c963..7de9e4c36d 100644
46968b6
--- a/grub-core/normal/main.c
46968b6
+++ b/grub-core/normal/main.c
9fdaa79
@@ -215,8 +215,9 @@ grub_normal_init_page (struct grub_term_output *term,
9fdaa79
   char *msg_formatted;
9fdaa79
   grub_uint32_t *unicode_msg;
9fdaa79
   grub_uint32_t *last_position;
9fdaa79
- 
46968b6
-  grub_term_cls (term);
9fdaa79
+
46968b6
+  if (! grub_debug_is_enabled ())
46968b6
+    grub_term_cls (term);
46968b6
 
e622855
   msg_formatted = grub_xasprintf (_("GRUB version %s"), PACKAGE_VERSION);
9fdaa79
   if (!msg_formatted)