grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] make assumed terminal width on cmd help dynamic


From: Felix Zielcke
Subject: [PATCH] make assumed terminal width on cmd help dynamic
Date: Sun, 20 Jul 2008 15:47:32 +0200

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]