Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Fd09R-0002Ql-KG for mharc-grub-devel@gnu.org; Mon, 08 May 2006 03:27:29 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fd09P-0002Nu-Me for grub-devel@gnu.org; Mon, 08 May 2006 03:27:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fd09N-0002L4-Jn for grub-devel@gnu.org; Mon, 08 May 2006 03:27:27 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fd09N-0002Ku-FM for grub-devel@gnu.org; Mon, 08 May 2006 03:27:25 -0400 Received: from [129.180.1.222] (helo=mailhub2.une.edu.au) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fd0A9-0002dj-Vs for grub-devel@gnu.org; Mon, 08 May 2006 03:28:14 -0400 Received: from metz.une.edu.au (metz.une.edu.au [129.180.3.3]) by mailhub2.une.edu.au (Postfix) with ESMTP id BD41D466E for ; Mon, 8 May 2006 17:27:16 +1000 (EST) Received: by metz.une.edu.au (Postfix, from userid 35331) id CAE461295D; Mon, 8 May 2006 17:27:15 +1000 (EST) Date: Mon, 8 May 2006 17:27:15 +1000 From: Andrew Apted To: grub-devel@gnu.org Message-ID: <20060508072715.GA10268@metz.une.edu.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.25i Subject: Keyboard bugs 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, 08 May 2006 07:27:28 -0000 Hello, I've noticed a couple of bugs in the keyboard handling of GRUB2: (1) in kern/i386/pc/startup.S, grub_console_checkkey() doesn't translate the code like getkey() does. Personally I think the checkkey() API would be better as a simple boolean value. (2) the grub_console_getkey() and checkkey() return value contains junk (the scan code) in the upper byte. I think the return value should just be a Unicode character, and the GRUB_TERM_ASCII_CHAR macro should go away (at first I thought was a "unicode chop" function, but the real purpose is to discard the scan-code part). Cheers, -- Andrew Apted