Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KKZGV-0004gR-Ie for mharc-grub-devel@gnu.org; Sun, 20 Jul 2008 09:47:55 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KKZGT-0004ei-5V for grub-devel@gnu.org; Sun, 20 Jul 2008 09:47:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KKZGQ-0004eR-OX for grub-devel@gnu.org; Sun, 20 Jul 2008 09:47:51 -0400 Received: from [199.232.76.173] (port=50458 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KKZGQ-0004eO-Lx for grub-devel@gnu.org; Sun, 20 Jul 2008 09:47:50 -0400 Received: from moutng.kundenserver.de ([212.227.126.183]:64107) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KKZGQ-00074v-7Y for grub-devel@gnu.org; Sun, 20 Jul 2008 09:47:50 -0400 Received: from fz (e180026197.adsl.alicedsl.de [85.180.26.197]) by mrelayeu.kundenserver.de (node=mrelayeu7) with ESMTP (Nemesis) id 0ML2xA-1KKZGP1B0i-0003Do; Sun, 20 Jul 2008 15:47:49 +0200 Message-ID: <89CD688385DC46C0B8A1049A6C2B14F4@fz> From: "Felix Zielcke" To: Date: Sun, 20 Jul 2008 15:47:32 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 12.0.1606 X-MimeOLE: Produced By Microsoft MimeOLE V12.0.1606 X-Provags-ID: V01U2FsdGVkX188V/PsBQSbCViur5Gem/DMfOAiphwhEM0ew2k DEKxq4iaw/EbMeruNfFfidLXVnqdvMmp1InOnBAcyXv7eEOqpD 0E74tVfGytESZ1jEMNTNli+VlsgTHus X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) Subject: [PATCH] make assumed terminal width on cmd help dynamic X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jul 2008 13:47:53 -0000 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 #include #include +#include /* 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