Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1CyITM-0008Ny-Qn for mharc-grub-devel@gnu.org; Mon, 07 Feb 2005 18:39:17 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CyITD-0008KU-79 for grub-devel@gnu.org; Mon, 07 Feb 2005 18:39:07 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CyIT1-0008D6-Aj for grub-devel@gnu.org; Mon, 07 Feb 2005 18:38:57 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CyIT0-0008BY-PY for grub-devel@gnu.org; Mon, 07 Feb 2005 18:38:54 -0500 Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1CyIEu-0006o5-RX for grub-devel@gnu.org; Mon, 07 Feb 2005 18:24:21 -0500 Received: (qmail invoked by alias); 07 Feb 2005 23:24:19 -0000 Received: from p3EE0E788.dip.t-dialin.net (EHLO pc1.trash.bin) (62.224.231.136) by mail.gmx.net (mp006) with SMTP; 08 Feb 2005 00:24:19 +0100 X-Authenticated: #19855039 Received: from pc8.trash.bin (pc8.trash.bin [192.168.4.8]) by pc1.trash.bin (Postfix) with ESMTP id 114294B99 for ; Tue, 8 Feb 2005 00:24:14 +0100 (CET) Received: by pc8.trash.bin (Postfix, from userid 500) id 9AD0145804D; Tue, 8 Feb 2005 00:24:14 +0100 (CET) Date: Tue, 8 Feb 2005 00:24:14 +0100 From: Marc-Jano Knopp To: The development of GRUB 2 Message-ID: <20050207232414.GG1380@mjk.myfqdn.de> References: <20050207121011.GC1380@mjk.myfqdn.de> <42077EA1.5090403@list.ru> <87is54tgum.fsf@marco.marco-g.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87is54tgum.fsf@marco.marco-g.com> User-Agent: Mutt/1.5.1i X-Y-GMX-Trusted: 0 Subject: Re: [Suggestion] LILO-like direct menu item access && scripting 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, 07 Feb 2005 23:39:11 -0000 On Mon, 07 Feb 2005 at 17:33 (+0000), Marco Gerards wrote: > Serbinenko Vladimir writes: > > > Not at all because this syntax will mean that key is executed > > before choosing entry that I don't like. I propose the following > > syntaxes (I'm waiting for your suggestions which to use): > > In that case you just should not press that key. :) > > There is only the problem of key collisions (c is used for the > console, for example). Perhaps 0-9, c-a and c-z can be used or so, I > personally don't care too much about this. Strange, both of you don't seem to like the idea of a menu mode, and rather accept restrictions in the choice of menu item letters. I would rather install Windows than accept such an inconsistency or restriction. ;-) Though I'm out of time for doing this myself, it doesn't seem too difficult to introduce a menu mode in GRUB: a flag, e.g. lilo_menu_mode and possibly a single if-statement to choose between the two command parsers and/or tables. Or am I too optimistic? As I mentioned before, there should be a way to absolutely (not relatively) select this LILO menu mode, so that you can really blindly work with it. So a toggle-menu-mode command/key (alone) will not suffice, there should be two different commands/keys for selecting the native GRUB command mode and the LILO menu mode. Additionally, the LILO menu mode could be indicated by a(n) (un)lit CapsLock LED, which most PC and many workstation keyboards have. And of course, the current mode should be printed well visible on the screen (inverted "LILO MENU MODE" or something). Finally, we need a grub.conf entry for choosing the default mode: lilomenumode on Done. :-) Of course, the lilo menu behavior is also possible without an extra mode, but then you have use Ctrl/Alt/whatever for either the GRUB commands or the LILO selection, and in both cases it's unnecessarily cumbersome (especially, if a menu item could be selected by a whole /string/, not a just a single letter/cipher). If you insist on modeless operation (oh, c'mon! :-}, please us Alt instead of Ctrl; it's much easier to use, as the left thumb isn't used elsewhere (the space bar can be operated with the right thumb as well) - as opposed to the left pinky. :-) > But it would be nice, IMHO, if it was clear which entry has which > hotkey. Perhaps the title can be followed by the key in some > different color or so? Hmm... I think the other way round would be nicer, as that's the usual way to do it (and everything is naturally aligned nicely then). (I think in LILO menus the order is the same, i.e. first letters, then name of the menu item). Then again, the best solution would be a user definable (in grub.conf) format string with %h for hotkey/hot"string" and %n for the menu item name etc. > > entry "SuSE 7.3 (2.4.29)":l > > { > > root (hd0,2) > > kernel /boot/vmlinuz root=/dev/sda1 vga=extended rootflags=data=journal > > } > > Personally I would prefer something like: > > entry "SuSE 7.3 (2.4.29)" key="1" > { > root (hd0,2) > kernel /boot/vmlinuz root=/dev/sda1 vga=extended rootflags=data=journal > } I'd prefer the latter, too, as it's nicer to read, indeed. But the first example is also still quite readable, especially when you choose the keys/strings appropriately, so you can implement whatever you like. Oh, of course it's right what Vladimir wrote: the hotkey should not execute a menu item directly, but move the selection bar over it, so that you can execute it with [Return]. The word "select" is too ambiguous here. It would be nice to have some kind of incremental search feature, just as IIRC LILO offers (I think that's what Vladimir meant), but the 1-letter/cipher selection would be okay, too. > Or we could just give *every* menu item a hotkey and make it > configurable to make it visual (like I described above) or not. Hmm... you mean every item has an implicit, automatically generated hotkey unless the user defines hotkeys of his own? Well, as long as it's printed somewhere, why not. But I think that there should be a way to undefine these automatically given hotkeys for each menu item then - at least I would like to be able to do so, as otherwise I'd feel like losing control a little, and then I could also install Windows. :-) Best regards Marc-Jano