From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NWxET-0008A4-PX for mharc-grub-devel@gnu.org; Mon, 18 Jan 2010 14:25:49 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NWxEQ-00088A-NV for grub-devel@gnu.org; Mon, 18 Jan 2010 14:25:46 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NWxEL-00084p-8n for grub-devel@gnu.org; Mon, 18 Jan 2010 14:25:46 -0500 Received: from [199.232.76.173] (port=54423 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWxEL-00084g-2Y for grub-devel@gnu.org; Mon, 18 Jan 2010 14:25:41 -0500 Received: from 197.red-80-32-81.staticip.rima-tde.net ([80.32.81.197]:54358 helo=mail.pina.cat) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NWxEJ-0001eB-Sd for grub-devel@gnu.org; Mon, 18 Jan 2010 14:25:40 -0500 Received: from pinux (82-45-164-87.cable.ubr06.hari.blueyonder.co.uk [82.45.164.87]) by mail.pina.cat (Postfix) with ESMTPA id A406B2894B248 for ; Mon, 18 Jan 2010 20:25:38 +0100 (CET) Received: by pinux (Postfix, from userid 1000) id B805015588; Mon, 18 Jan 2010 20:25:37 +0100 (CET) Date: Mon, 18 Jan 2010 19:25:37 +0000 From: Carles Pina i Estany To: The development of GNU GRUB Message-ID: <20100118192537.GA14242@pina.cat> References: <20100118001016.GA12122@pina.cat> <4B54600A.4050904@gmail.com> <20100118135335.GA28365@pinux.info> <4B547786.7050509@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B547786.7050509@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: keyboard layout patches X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jan 2010 19:25:47 -0000 Hi, On Jan/18/2010, Vladimir '??-coder/phcoder' Serbinenko wrote: > Carles Pina i Estany wrote: > > Actually if prefix (that it's a variable) is "/" then args[0] acts as a > > filename. Would be like "///test/filename" and it's a valid directory. > > > > > Perhaps we should remove prefix variables altogether. I understand that you mean that the user would type: load_keyboard /boot/grub/layouts/es right? (in the shell or the config file) Comments on this? (I don't like it, I would even prefer to have the prefix hardcoded or like it's now) > >> Can you think of a way to restoring keyboard map to English? > >> > > > > unloading the module restores the original keyboard (so, English one). I save > > the original one when the module is loaded. > > > > > I mean imagine that you're in a face to a grub with klingon keyboard > how would you find your way out? Klingon is my primary layout! :-) I have different things to say and we could discuss quite long, but let's jump to the ideas: a) very short term: what about to register a command to "something" (like "1234", numbers doesn't usually change between keyboard, right? or "**" for the keypad -I should check that it works, but would fix if it doesn't) that reverts to English? b) medium term: as you suggested some days ago on IRC: Shift+Shift, or Ctrl+Shift or something like this reverts to English. I'm not sure about the infrastructure needed for b) > Also keyboard_layouts is pretty small. Perhaps we can just make > *_keyboard depend on it and put US keyboard into it as default and shave > some complexity this way How it would work in rescue mode and at_keyboard? I mean, extreme cases that Grub for some reason could not reach the keyboard layout file. The complexitity that we save is very reduced. -- Carles Pina i Estany http://pinux.info