From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1XXHaE-0004hW-EV for mharc-grub-devel@gnu.org; Thu, 25 Sep 2014 18:32:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45699) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXHa5-0004gD-QO for grub-devel@gnu.org; Thu, 25 Sep 2014 18:32:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXHZz-0001Ha-7f for grub-devel@gnu.org; Thu, 25 Sep 2014 18:32:09 -0400 Received: from 177-91-79-176.rev.netcorporativa.com.br ([177.91.79.176]:40314 helo=beren) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXHZy-0001Gd-42 for grub-devel@gnu.org; Thu, 25 Sep 2014 18:32:03 -0400 Received: from beren (localhost.localdomain [127.0.0.1]) by beren (8.14.7/8.14.7) with ESMTP id s8PLgbKC015489; Thu, 25 Sep 2014 18:42:38 -0300 Received: (from pfsmorigo@localhost) by beren (8.14.7/8.14.7/Submit) id s8PLgajj014648; Thu, 25 Sep 2014 18:42:36 -0300 From: Paulo Flabiano Smorigo To: grub-devel@gnu.org Subject: [PATCH] Include a text attribute reset in the clear command for ppc Date: Thu, 25 Sep 2014 18:41:29 -0300 Message-Id: <1411681289-14232-1-git-send-email-pfsmorigo@linux.vnet.ibm.com> X-Mailer: git-send-email 1.8.1.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 177.91.79.176 Cc: Paulo Flabiano Smorigo X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Sep 2014 22:32:16 -0000 Always clear text attribute for clear command in order to avoid problems after it boots. * grub-core/term/terminfo.c: Add escape for text attribute reset --- grub-core/term/terminfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grub-core/term/terminfo.c b/grub-core/term/terminfo.c index f0d3e3d..7cb7909 100644 --- a/grub-core/term/terminfo.c +++ b/grub-core/term/terminfo.c @@ -151,7 +151,7 @@ grub_terminfo_set_current (struct grub_term_output *term, /* Clear the screen. Using serial console, screen(1) only recognizes the * ANSI escape sequence. Using video console, Apple Open Firmware * (version 3.1.1) only recognizes the literal ^L. So use both. */ - data->cls = grub_strdup (" \e[2J"); + data->cls = grub_strdup (" \e[2J\e[m"); data->reverse_video_on = grub_strdup ("\e[7m"); data->reverse_video_off = grub_strdup ("\e[m"); if (grub_strcmp ("ieee1275", str) == 0) -- 1.8.1.4