Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KWqAu-0004I6-Ky for mharc-grub-devel@gnu.org; Sat, 23 Aug 2008 06:16:52 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWqAs-0004Gm-W9 for grub-devel@gnu.org; Sat, 23 Aug 2008 06:16:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWqAr-0004Ga-EW for grub-devel@gnu.org; Sat, 23 Aug 2008 06:16:49 -0400 Received: from [199.232.76.173] (port=54512 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWqAr-0004GX-6T for grub-devel@gnu.org; Sat, 23 Aug 2008 06:16:49 -0400 Received: from 197.red-80-32-81.staticip.rima-tde.net ([80.32.81.197]:41289 helo=mail.pina.cat) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KWqAq-0008PD-Qk for grub-devel@gnu.org; Sat, 23 Aug 2008 06:16:49 -0400 Received: from pinux (unknown [77.210.133.134]) by mail.pina.cat (Postfix) with ESMTP id 29459288F30C3 for ; Sat, 23 Aug 2008 12:16:47 +0200 (CEST) Received: by pinux (Postfix, from userid 1000) id C12761B03D; Sat, 23 Aug 2008 12:16:42 +0200 (CEST) Date: Sat, 23 Aug 2008 12:16:42 +0200 From: Carles Pina i Estany To: grub-devel@gnu.org Message-ID: <20080823101642.GA21564@pina.cat> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: 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 10:16:51 -0000 Hello, I started to play with GRUB_TERM_PPAGE/NPAGE in normal/menu.c and I've had a problem: they was working in opposite way than I've expected. Tracing the problem deeper than swapping GRUB_TERM_PPAGE constant by GRUB_TERM_NPAGE, I have found that this values comes from GRUB_CONSOLE_KEY_NPAGE. Let's define: NPAGE (next page) = PGDN (PG DOWN). PPAGE (previous page) = PGUP (PG UP). Is this assumption correct? There is quite much places in Grub2 code that defines: #define GRUB_CONSOLE_KEY_NPAGE 0x4900 #define GRUB_CONSOLE_KEY_PPAGE 0x5100 Googling for these codes, I've found that they are usually defined in opposite way: #define KEY_PGUP 0x4900 #define KEY_PGDN 0x5100 All other codes matches. If this is correct, a bit later I will prepare a patch to swap 0x4900 and 0x5100 where it's needed. Am I missing something? Thanks, -- Carles Pina i Estany GPG id: 0x17756391 http://pinux.info