Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N0KGW-0008Ux-3k for mharc-grub-devel@gnu.org; Tue, 20 Oct 2009 15:21:04 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0KGT-0008UJ-Nq for grub-devel@gnu.org; Tue, 20 Oct 2009 15:21:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0KGT-0008U0-06 for grub-devel@gnu.org; Tue, 20 Oct 2009 15:21:01 -0400 Received: from [199.232.76.173] (port=52635 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0KGS-0008Tv-Q3 for grub-devel@gnu.org; Tue, 20 Oct 2009 15:21:00 -0400 Received: from fg-out-1718.google.com ([72.14.220.153]:27732) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N0KGS-0002Xq-F3 for grub-devel@gnu.org; Tue, 20 Oct 2009 15:21:00 -0400 Received: by fg-out-1718.google.com with SMTP id 16so2528318fgg.12 for ; Tue, 20 Oct 2009 12:20:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to :content-type:content-transfer-encoding; bh=SWI4azuFKRTKjXLR8AWyn4S4tMlok5WEWYM+9yqFg5g=; b=ai2KliQT20YsZ05AmG3NuZ/o+ea5Ds4RTxX43r5Ql0rCpf+/4p7u2xDQKvZvNo2Q5k sSENjEZjUfsZDIxKTcaYcZNGubtlEOCFQloWnpFJ3+0yXwugo1ug0nPm6HprwZR7fL0S NSACOm6ZCvprxOCRQjajKm3Ngkrg+T9bI6J0k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; b=CNFJ9ePGZ+3RxVL5iGxaci/V54Hxak+8ET/6+kPTu0TB4JlhftolJjDrBmJkS5e6L/ 0+4fCvB9MfjESzZEhyTwoYpHQR6OShbtHbbZYgSnsfZsFBsrkEjCOOSIsQBxWsK7vqug 7PGpzDjv+f67FbhOsC2mexW6eZyi1SV1MieCM= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.86.170.22 with SMTP id s22mr3968514fge.37.1256066459226; Tue, 20 Oct 2009 12:20:59 -0700 (PDT) In-Reply-To: References: From: Michal Suchanek Date: Tue, 20 Oct 2009 21:20:39 +0200 X-Google-Sender-Auth: 1c747a2f106c0fce Message-ID: To: The development of GRUB 2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Tue, 20 Oct 2009 19:21:02 -0000 2009/10/18 Bean : > Hi, > > Update: > > Add mapkey section. For example: > > mapkey { > =C2=A0f5 =3D ctrl-x > } Does this also generate a mapkey text which you can dump into a text box so that people know what is mapped to what (and the same for the default bindings and grub version/last git commit)? Wouldn't it be more practical and transparent to just make the mappings configurable? That is write the current mappings as key->function assignments and then allow change mappings / add new mappings. > > maps f5 key to ctrl-x, this is important for platforms like EFI as > ctrl-x can't be input. > > key name should be lowercase, it can be single character, f1 to f10, > ctrl-a to ctrl-z, left, right, up, down, home, end, delete, page_up, > page_down, esc, tab, backspace and space. > > Add onkey section, which allow you to assign a function when a key is > pressed. For example ,this is the onkey section for the demo: > > onkey { > =C2=A0c =3D "menu_popup term_window" > =C2=A0e =3D "menu_popup edit_window edit.text=3Dcommand" > =C2=A0f7 =3D "menu_popup layout_test" > =C2=A0f8 =3D menu_toggle_mode > =C2=A0f9 =3D halt > =C2=A0f10 =3D reboot > } This should be merged with the mapkey into a single key mapping function. > > c open a terminal window, e open a edit box to edit the current > command, use ctrl-x to save it. f7 runs the layout demo test, f8 > toggle between text and graphic mode, f9 shutdown, f10 reboot. > > Data binding for popup windows, for example, in the above example, > > menu_popup edit_window edit.text=3Dcommand > > property text in the edit widget in the popup dialog binds to the > command property of current node, this is used to implement the edit > function. > > Add two property attach_hcenter and attach_vcenter for layout manager. What is the actual use case for windows which are not managed in the layout and thus potentially overlap other windows in a system where window overlapping is not handled? > The top widget of popup window must use absolute position, as widget > are already placed in screen and can't be moved without refresh. But > it's not easy to put the widget in the middle of screen using > attach_left/right/top/bottom, the new property attach_hcenter and > attach_vcenter defines the offset from the center of screen. Can't you just make the popup fullscreen? IMHO it rids us of quite a few things that allow people to shoot themselves in the foot and require documentation and maintenance while not removing anything particularly useful. > > Support TAB completion for term widget. That's very nice. Thanks Michal