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

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