Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KWsm2-00079b-PY for mharc-grub-devel@gnu.org; Sat, 23 Aug 2008 09:03:22 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWsm1-00077S-5i for grub-devel@gnu.org; Sat, 23 Aug 2008 09:03:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWsm0-00075o-AD for grub-devel@gnu.org; Sat, 23 Aug 2008 09:03:20 -0400 Received: from [199.232.76.173] (port=49632 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWsm0-00075c-28 for grub-devel@gnu.org; Sat, 23 Aug 2008 09:03:20 -0400 Received: from 197.red-80-32-81.staticip.rima-tde.net ([80.32.81.197]:32976 helo=mail.pina.cat) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KWslz-0007Nj-LR for grub-devel@gnu.org; Sat, 23 Aug 2008 09:03:20 -0400 Received: from pinux (unknown [77.210.34.112]) by mail.pina.cat (Postfix) with ESMTP id 8863B288F30C3 for ; Sat, 23 Aug 2008 15:03:17 +0200 (CEST) Received: by pinux (Postfix, from userid 1000) id CF73514664; Sat, 23 Aug 2008 15:03:10 +0200 (CEST) Date: Sat, 23 Aug 2008 15:03:10 +0200 From: Carles Pina i Estany To: The development of GRUB 2 Message-ID: <20080823130310.GA4245@pina.cat> References: <20080823101642.GA21564@pina.cat> <48AFE7D1.3020107@nic.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <48AFE7D1.3020107@nic.fi> User-Agent: Mutt/1.5.18 (2008-05-17) Content-Transfer-Encoding: quoted-printable X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: Re: GRUB_CONSOLE_KEY_NPAGE/PPAGE codes 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: Sat, 23 Aug 2008 13:03:21 -0000 Hi, On Aug/23/2008, Vesa J=E4=E4skel=E4inen wrote: > > Let's define: NPAGE (next page) =3D PGDN (PG DOWN). PPAGE (previous p= age) > > =3D PGUP (PG UP). Is this assumption correct? > >=20 > > There is quite much places in Grub2 code that defines: > > #define GRUB_CONSOLE_KEY_NPAGE 0x4900 > > #define GRUB_CONSOLE_KEY_PPAGE 0x5100 > >=20 > > Googling for these codes, I've found that they are usually defined in > > opposite way: > > #define KEY_PGUP 0x4900 > > #define KEY_PGDN 0x5100 > >=20 > > All other codes matches. checking the Grub's ChangeLog (not Grub2): ------ 2003-03-19 Yoshinori K. Okuji From Adam Lackorzynski : * stage2/shared.h (KEY_NPAGE): Changed to 0x5100. (KEY_PPAGE): Changed to 0x4900. ------ It defines PPAGE as 0x4900 and NPAGE as 0x5100. This is the change that I= also want to do, so looks fine. > > If this is correct, a bit later I will prepare a patch to swap 0x4900 > > and 0x5100 where it's needed. > >=20 > > Am I missing something? >=20 > Or me.. couldn't we just use GRUB_CONSOLE_KEY_PAGE_UP / > GRUB_CONSOLE_KEY_PAGE_DOWN or something like that. NPAGE or PPAGE seems > a bit weird. Then there is no need to hassle this next time when the > issue is at hand :) Then I would also change GRUB_TERM_PPAGE and GRUB_TERM_NPAGE names to GRUB_TERM_PAGE_UP and GRUB_TERM_PAGE_DOWN (from include/grub/term.h, to b= e consistent between GRUB_TERM_ and GRUB_CONSOLE_). And the places in the c= ode that this appears. Note: in Spanish Page Up key is "RePag" that it means something like "Previous Page". So maybe who wrote these names in first instance is not English speaker and in his/her language it's called "Previous Page" and n= ot "Page Up". Here I'm just guessing. So: a) the values are swapped. I will send a patch to swap GRUB_CONSOLE_KEY_N= PAGE and GRUB_CONSOLE_KEY_PPAGE in all places. b) what you (people in general) think about changing the name from GRUB_CONSOLE_KEY_NPAGE to GRUB_CONSOLE_KEY_PAGE_DOWN? (and PAGE_UP) and a= lso the GRUB_TERM_? If we want to change, do you prefer that I change it in t= he same patch or different patch than changing the values? Thanks for your helping, --=20 Carles Pina i Estany GPG id: 0x17756391 http://pinux.info