Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Fdaqp-0005IX-HD for mharc-grub-devel@gnu.org; Tue, 09 May 2006 18:38:43 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fdaqo-0005IH-Jk for grub-devel@gnu.org; Tue, 09 May 2006 18:38:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fdaqm-0005Ho-Kq for grub-devel@gnu.org; Tue, 09 May 2006 18:38:42 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fdaqm-0005Hl-Gy for grub-devel@gnu.org; Tue, 09 May 2006 18:38:40 -0400 Received: from [212.85.152.101] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fdarv-0000qM-IY for grub-devel@gnu.org; Tue, 09 May 2006 18:39:51 -0400 Received: from kotoba.oasis.nexedi.com (kotoba.oasis.nexedi.com [212.85.152.101]) by kotoba.storever.com (Postfix) with ESMTP id 69C6B3C934CED for ; Wed, 10 May 2006 02:03:48 +0200 (CEST) Received: from [??1] (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id D1C843C934CEC for ; Wed, 10 May 2006 02:03:47 +0200 (CEST) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Wed, 10 May 2006 00:38:34 +0200 User-Agent: KMail/1.8.2 References: <20060508072715.GA10268@metz.une.edu.au> In-Reply-To: <20060508072715.GA10268@metz.une.edu.au> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200605100038.34858.okuji@enbug.org> X-Bogosity: No, tests=bogofilter, spamicity=0.499988, version=0.17.2 Subject: Re: 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: Tue, 09 May 2006 22:38:42 -0000 On Monday 08 May 2006 09:27, Andrew Apted wrote: > (1) in kern/i386/pc/startup.S, grub_console_checkkey() > doesn't translate the code like getkey() does. This is not a bug, because we don't interpret the return value as a scan code. As long as the return value is greater than or equal to zero, there is no problem. > Personally I think the checkkey() API would be better > as a simple boolean value. I can agree with this, although the priority is not high. > (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). However, we cannot say that it is a unicode char, because unicode does not define control codes. I bet that it is better to keep the current way, because this is more flexible. Thank you for your suggestions, anyway. Okuji