Blame SOURCES/0009-for-ppc-reset-console-display-attr-when-clear-screen.patch

d9d99f
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
d9d99f
From: Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
d9d99f
Date: Wed, 24 Apr 2013 10:51:48 -0300
d9d99f
Subject: [PATCH] for ppc, reset console display attr when clear screen
d9d99f
d9d99f
v2: Also use \x0c instead of a literal ^L to make future patches less
d9d99f
awkward.
d9d99f
d9d99f
This should fix this bugzilla:
d9d99f
https://bugzilla.redhat.com/show_bug.cgi?id=908519
d9d99f
d9d99f
Signed-off-by: Peter Jones <pjones@redhat.com>
d9d99f
---
d9d99f
 grub-core/term/terminfo.c | 2 +-
d9d99f
 1 file changed, 1 insertion(+), 1 deletion(-)
d9d99f
d9d99f
diff --git a/grub-core/term/terminfo.c b/grub-core/term/terminfo.c
d9d99f
index d317efa368d..29df35e6d20 100644
d9d99f
--- a/grub-core/term/terminfo.c
d9d99f
+++ b/grub-core/term/terminfo.c
d9d99f
@@ -151,7 +151,7 @@ grub_terminfo_set_current (struct grub_term_output *term,
d9d99f
       /* Clear the screen.  Using serial console, screen(1) only recognizes the
d9d99f
        * ANSI escape sequence.  Using video console, Apple Open Firmware
d9d99f
        * (version 3.1.1) only recognizes the literal ^L.  So use both.  */
d9d99f
-      data->cls               = grub_strdup ("?\e[2J");
d9d99f
+      data->cls               = grub_strdup ("\x0c\e[2J\e[m");
d9d99f
       data->reverse_video_on  = grub_strdup ("\e[7m");
d9d99f
       data->reverse_video_off = grub_strdup ("\e[m");
d9d99f
       if (grub_strcmp ("ieee1275", str) == 0)