Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mwpa7-0001bQ-00 for mharc-grub-devel@gnu.org; Sat, 10 Oct 2009 23:58:51 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mwpa5-0001a3-GD for grub-devel@gnu.org; Sat, 10 Oct 2009 23:58:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mwpa1-0001VM-GF for grub-devel@gnu.org; Sat, 10 Oct 2009 23:58:49 -0400 Received: from [199.232.76.173] (port=52385 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mwpa1-0001V4-9X for grub-devel@gnu.org; Sat, 10 Oct 2009 23:58:45 -0400 Received: from mail-px0-f202.google.com ([209.85.216.202]:62628) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mwpa0-0001d8-SS for grub-devel@gnu.org; Sat, 10 Oct 2009 23:58:45 -0400 Received: by pxi40 with SMTP id 40so8466852pxi.24 for ; Sat, 10 Oct 2009 20:58:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=fpR4vDxjkekiu64R9FP1JloloChq73n08R5Ccd8CkRE=; b=MbzkX/fjeEsAi9XDYvRpV/UQSB3xPlBak0Q1AOs4/B+Eyppms92E6W2uM7V1lea47F zZsBkLZ9Y2DkCKgr784+aHivvc7RQ/2kHN3IwFkKO6fnsPhmeb0D1aeoT5G2VSiY7Fd4 f2xfYC6VZX+3oPY06veDnUipiWXGrGg5oA9xk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=p0kiFTJliQrgPmtEmpihvdhr9pv+Bf7mRpY2eVhXeOj3c/MhzE375cMGHG8AxMwINl o/hDLTMN07vP9vUk/Kf6ZUrsRJkeELJwItnxtjkUhXQSUoHrCGIvHoFaoFDh6+4C4N2i NP39SrJL81csDd4ozFNn3rOFvPwZt9ffuHiI8= MIME-Version: 1.0 Received: by 10.140.177.7 with SMTP id z7mr324250rve.257.1255233523814; Sat, 10 Oct 2009 20:58:43 -0700 (PDT) In-Reply-To: References: Date: Sun, 11 Oct 2009 11:58:43 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [GITGRUB] New menu interface (implementation) 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: Sun, 11 Oct 2009 03:58:49 -0000 On Sun, Oct 11, 2009 at 6:54 AM, Michal Suchanek wrote: > Hello > > 2009/10/10 Bean : >> Hi, >> >> Update: >> >> Add command menu_start, menu_popup, menu_toggle_mode and menu_refresh. > > This is very good, it's possible to run something with the menu now. > > > I wonder why the popup menu shows on the same screen as the main menu. > AFAIK it is impossible to return to the main menu without closing the > popup first. There does not seem to be any protection from the popup > overlapping the main menu (which would be ugly) and if there were the > main menu would needlessly occupy space in case the popup contained > more content (think the long help texts that distributions include in > syslinux). > > I suggest that the popup should replace the "screen" element and when > it is closed the previous screen should be restored. It might be nice > to include the command line as the first screen under the main menu. Hi, Sometimes it's desired to place the popup alongside the current screen. For example, we can use this to implement the submenu, which is pop near the current menu. Anyway, to replace screen, you can use a non transparent panel as the top widget of popup: panel { width = 100% height = 100% background = ",,black,#0" } > > > Is it possible to include the menu in the main config file? > > I am not sure this would be that much useful because a font is > required for menu in graphics mode anyway so there are very few cases > when a single file would be enough. It might be nice for people who do > have text mode, though. > > > The terminal is somewhat odd. > > The tab character does not seem to work in the terminal. When I write > "ls (" and press tab nothing happens. The tab completion function from normal.mod yet haven't been integrated yet. > > Pressing space (or any other key) in text mode seems to draw the > terminal cursor all over the terminal area momentarily. Right, I should hide the cursor while updating the screen. > > Pressing backspace at the prompt (when there is nothing typed or > everything is already deleted) seems to break the terminal. The term would execute the line only if it starts with prompt "grub> ", otherwise it's just an editor, this means you can use UP/PAGEUP to go back to previous content easier. when you use backspace at prompt, the prompt is changed so it can't be identified anymore, you can use DOWN to start a new line and a new prompt would be printed. > > When I type help it waits some seconds and then shows like 2/3-screen > of text. This is because scrolling always brings last line somewhere > into 2/3 of the screen and leaves the last 1/3 blank. I know gfxterm > is already slow but the new terminal seems even slower. The new > terminal does not even show the scrolled part of the text at all. This > would be useful if we had less/more. It is true the scrolling in > gfxterm is abysmally slow but at least it shows the text. Currently the terminal always return dummy width 0x7f, so the line would be very long in help command, I can return a more reasonable value. -- Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/