From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1CypK5-0002I9-7t for mharc-grub-devel@gnu.org; Wed, 09 Feb 2005 05:43:53 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CypBl-0001bc-Oc for grub-devel@gnu.org; Wed, 09 Feb 2005 05:35:20 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CypBc-0001aj-50 for grub-devel@gnu.org; Wed, 09 Feb 2005 05:35:11 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CypBT-0001a1-LN for grub-devel@gnu.org; Wed, 09 Feb 2005 05:35:02 -0500 Received: from [194.67.23.121] (helo=mx1.mail.ru) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cyoy2-00028v-NG for grub-devel@gnu.org; Wed, 09 Feb 2005 05:21:06 -0500 Received: from [83.77.2.52] (port=1823 helo=[192.168.1.100]) by mx1.mail.ru with esmtp id 1Cyoy1-0001em-00 for grub-devel@gnu.org; Wed, 09 Feb 2005 13:21:05 +0300 Message-ID: <4209E434.2020806@list.ru> Date: Wed, 09 Feb 2005 11:21:41 +0100 From: Serbinenko Vladimir User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: The development of GRUB 2 References: <20050207121011.GC1380@mjk.myfqdn.de> <42077EA1.5090403@list.ru> <87is54tgum.fsf@marco.marco-g.com> <20050207232414.GG1380@mjk.myfqdn.de> <87zmyek9j8.fsf@marco.marco-g.com> <20050208225132.GK5907@mjk.myfqdn.de> In-Reply-To: <20050208225132.GK5907@mjk.myfqdn.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: Not detected 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: Wed, 09 Feb 2005 10:43:51 -0000 Marc-Jano Knopp wrote: >On Tue, 08 Feb 2005 at 21:48 (+0000), Marco Gerards wrote: > > >>Marc-Jano Knopp writes: >> >> >>>On Mon, 07 Feb 2005 at 17:33 (+0000), Marco Gerards wrote: >>> >>> >[...] > >I see that the whole problem is a misunderstanding about what we >mean by LILO menu mode - I'm sorry if I explained it too ambiguously >and I will hereby not just clarify, but simplify this issue *a lot*: > > >In GRUB, one should be able to move the selection bar absolutely >to a specific menu item by means of hotkeys (or "hotstrings"). > >I propose to have the single-letter command 's' (I hope it's not >bound yet) for choosing a specific menu item by hotkey. > >Usage: > > 1. Hit 's' > > I would prefer that all keys with special meaning will be C-something (with ctrl). And then all normal keys will be for choice only. So there is no need for 's' > 2. Hit hotkey of wanted menu item (e.g. 'l' for Linux) > > The wanted menu item is now selected (not executed). > >If one wants to use "hotstrings" to select a specific menu item, >step 2 needs pressing [Return] after entering the string. > >That's all! > >Now *that* should be easy to code (for a GRUB developer :-). > > >[...] > > >>>>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). >>> >>> >>The other way around? Can you describe that please? >> >> > >Suggested way: > > menuitemtitle1 hotkey1 > menuitemtitle2 hotkey2 > menuitemtitle3 hotkey3 > >My (and LILO's (and Carlito's)) way: > > hotkey1 menuitemtitle1 > hotkey2 menuitemtitle2 > hotkey3 menuitemtitle3 > > > Have you read about current GRUB2 menu syntax? I think the best syntax will be: entry "SuSE Linux" sequence="suse" { .... } Other thing that I would like to discuss is how to clear entered string. E.g. if I entered "win32" but then I thought that it must die and want linux. How can I clear it fast without using backspace to enter "mdk" >I guess a run-time-interpreted format string for menu item formatting >would be best. > > > > I'll write syntax interpreting and perhaps whole thing because menu parsing is integrated with scripting and nobody knows it better then me P.S. What is your opinion about scripting(till now I've heard no comments)?