From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Dpa4Y-0008Ew-AT for mharc-grub-devel@gnu.org; Mon, 04 Jul 2005 19:09:54 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dpa4T-0008C2-6R for grub-devel@gnu.org; Mon, 04 Jul 2005 19:09:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dpa4P-00089y-SB for grub-devel@gnu.org; Mon, 04 Jul 2005 19:09:47 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dpa4O-00087k-RI for grub-devel@gnu.org; Mon, 04 Jul 2005 19:09:44 -0400 Received: from [212.43.237.68] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dpa6i-0007Tv-I1 for grub-devel@gnu.org; Mon, 04 Jul 2005 19:12:08 -0400 Received: from ASSP-nospam (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id 1DD12FA4CD3F for ; Tue, 5 Jul 2005 01:06:03 +0200 (CEST) Received: from 127.0.0.1 ([127.0.0.1] helo=ip6-localhost) by ASSP-nospam ; 4 Jul 05 23:06:02 -0000 From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Tue, 5 Jul 2005 01:05:54 +0200 User-Agent: KMail/1.7.2 References: <42C85357.20500@yahoo.fr> In-Reply-To: <42C85357.20500@yahoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200507050105.54961.okuji@enbug.org> Subject: Re: FIXME: These should be dynamically obtained from a terminal. 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: Mon, 04 Jul 2005 23:09:50 -0000 On Sunday 03 July 2005 23:06, Vincent Pelletier wrote: > -add an asm function to get the current vga mode without changing it (or > maybe a global var to keep the current vga mode) Probably it is better to keep the current mode in a variable. It is not funny to go back to real mode every time. > -add a field in struct grub_term > -implement this function in different terminal handlers > -implement grub_getwh > -redefine GRUB_TERM_WIDTH & GRUB_TERM_HEIGHT macros to use grub_getwh Sound good. > Here are my questions : > Should we foresee, in vga mode, that the user might someday choose his > vga mode ? No. Since the BIOS does not provide the geometry for each VGA mode, we must maintain a table in that case. And, the table differs among video cards. So I do not want to allow the user to change it to an arbitrary mode. What we really need is to support VESA. The screen of the VGA mode is too small to do fancy stuff. > Should we redefine all the macros we use to draw the menu to be less > intensive on grub_getwh ? We need to call grub_getwh only once. Possibly in grub_menu_init_page. > In the attached patch, the vga function is disabled, because for now the > asm function does not work (returns always 0). As I'm really not > familiar with x86 asm, I think I had something wrong adapting from > grub_vga_set_mode. As the VGA mode is hardcoded, you can hardcode the geometry in vga.c as well. BTW, is the VGA terminal working well? Since Marco changed the mode to 0x10 from 0x12, the screen is a bit smaller than before, and I'm not sure if the menu entry editor works with this. Okuji