All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] make assumed terminal width on cmd help dynamic
@ 2008-07-20 13:47 Felix Zielcke
  2008-07-20 13:53 ` Felix Zielcke
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Felix Zielcke @ 2008-07-20 13:47 UTC (permalink / raw)
  To: grub-devel

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
 



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-07-27 15:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-20 13:47 [PATCH] make assumed terminal width on cmd help dynamic Felix Zielcke
2008-07-20 13:53 ` Felix Zielcke
2008-07-20 14:08 ` Felix Zielcke
2008-07-20 18:16 ` Marco Gerards
2008-07-20 18:52   ` Felix Zielcke
2008-07-20 19:41     ` Marco Gerards
2008-07-26  9:14       ` Marco Gerards
2008-07-27 13:03         ` Robert Millan
2008-07-27 15:50           ` Felix Zielcke

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.