Thanks to nyu and daChaac on IRC
By default with gfxterm loaded and gfxmode set to 640*480 help command produces 
empty lines see [0]
help command assumes a fixed width of 80 but gfxterm in 640*480 has only 77

This is a patch to fix it.


[0] http://img146.imageshack.us/my.php?image=otherlinux26xkernel64biao8.png


* commands/help.c: changed assumed terminal width from 80 to dynamic

Index: commands/help.c
===================================================================
--- commands/help.c     (Revision 1723)
+++ commands/help.c     (Arbeitskopie)
@@ -21,10 +21,11 @@
#include <grub/dl.h>
#include <grub/arg.h>
#include <grub/misc.h>
+#include <grub/term.h>

/* XXX: This has to be changed into a function so the screen can be
   optimally used.  */
-#define TERM_WIDTH     80
+#define TERM_WIDTH     GRUB_TERM_WIDTH



_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to