]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
authorhollisb <hollisb@localhost>
Thu, 10 Nov 2005 01:57:52 +0000 (01:57 +0000)
committerhollisb <hollisb@localhost>
Thu, 10 Nov 2005 01:57:52 +0000 (01:57 +0000)
* term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
escape sequence and a literal ^L to clear the screen.

* commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
when returning from Open Firmware.

ChangeLog
commands/ieee1275/suspend.c
term/ieee1275/ofconsole.c

index 63e6920914cbd9c79b733749e7e708541dace447..6dc676827d8d09f2382001284d432363d0e1d3f8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2005-11-09  Hollis Blanchard  <hollis@penguinppc.org>
+
+       * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
+       escape sequence and a literal ^L to clear the screen.
+
+       * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
+       when returning from Open Firmware.
+
 2005-11-09  Hollis Blanchard  <hollis@penguinppc.org>
 
        * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
index 24f0b4446d1fdc247ba86bdd5864e045562a64c4..ba7e4740e5dd3e1382da0a0ca737a0c4a692d7c6 100644 (file)
@@ -21,6 +21,7 @@
 #include <grub/normal.h>
 #include <grub/dl.h>
 #include <grub/misc.h>
+#include <grub/term.h>
 #include <grub/ieee1275/ieee1275.h>
 
 static grub_err_t
@@ -30,6 +31,7 @@ grub_cmd_suspend (struct grub_arg_list *state  __attribute__ ((unused)),
 {
   grub_printf ("Run 'go' to resume GRUB.\n");
   grub_ieee1275_enter ();
+  grub_cls ();
   return 0;
 }
 
index 614ec95a8042168836f7732b7d70e50969397744..ec4840678b54912d9e8491ba38a84f93f7bde41a 100644 (file)
@@ -285,8 +285,10 @@ grub_ofconsole_gotoxy (grub_uint8_t x, grub_uint8_t y)
 static void
 grub_ofconsole_cls (void)
 {
-  /* Clear the screen.  */
-  grub_ofconsole_writeesc ("\e[2J");
+  /* 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.  */
+  grub_ofconsole_writeesc ("\f\e[2J");
   grub_gotoxy (0, 0);
 }