nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

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

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