Author: oxygene
Date: 2008-10-03 19:25:57 +0200 (Fri, 03 Oct 2008)
New Revision: 76

Modified:
   trunk/filo/main/grub/builtins.c
   trunk/filo/main/grub/char_io.c
Log:
- grub_putchar must send \r\n to itself, when it line wraps
- grub_printf("    ") leads to weird effects on scroll,
  grub_putstr("    ") does not - for now, use the latter.

Modified: trunk/filo/main/grub/builtins.c
===================================================================
--- trunk/filo/main/grub/builtins.c     2008-10-02 07:39:09 UTC (rev 75)
+++ trunk/filo/main/grub/builtins.c     2008-10-03 17:25:57 UTC (rev 76)
@@ -450,7 +450,7 @@
                                                                        break;
                                                }
 
-                                               grub_printf("    ");
+                                               grub_putstr("    ");
                                                for (i = 0; i < len; i++)
                                                        grub_putchar(*doc++);
                                                grub_putchar('\n');

Modified: trunk/filo/main/grub/char_io.c
===================================================================
--- trunk/filo/main/grub/char_io.c      2008-10-02 07:39:09 UTC (rev 75)
+++ trunk/filo/main/grub/char_io.c      2008-10-03 17:25:57 UTC (rev 76)
@@ -935,6 +935,7 @@
        } else if (isprint(c)) {
                getyx(stdscr, y, x);
                if (x + 1 == COLS) {
+                       console_putchar('\r');
                        console_putchar('\n');
                }
                if (console_color_state == COLOR_STATE_HIGHLIGHT)


--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to