Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N4e2r-0006CE-Dx for mharc-grub-devel@gnu.org; Sun, 01 Nov 2009 12:16:49 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N4e2q-0006Br-5Q for grub-devel@gnu.org; Sun, 01 Nov 2009 12:16:48 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N4e2k-00068a-Ol for grub-devel@gnu.org; Sun, 01 Nov 2009 12:16:46 -0500 Received: from [199.232.76.173] (port=49845 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4e2k-00068X-Jd for grub-devel@gnu.org; Sun, 01 Nov 2009 12:16:42 -0500 Received: from mail-pw0-f47.google.com ([209.85.160.47]:49655) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N4e2k-00069X-52 for grub-devel@gnu.org; Sun, 01 Nov 2009 12:16:42 -0500 Received: by pwj10 with SMTP id 10so1524014pwj.26 for ; Sun, 01 Nov 2009 09:16:41 -0800 (PST) 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=Y2H6PROE65dyTzn+p5jWq1iPDb8d30wUtgh/DLhMJHY=; b=pq/z1gnjQwV2ScLadWder/WVXoJwNp+XWPPVjj535aK7ADWCJfNNpPnP4ePbP3cHsj 9CeChy8JeNKi1qu7At1yLmdd72G4D2giPBCHbP+1ybmg/rYU8Wf1Qifp477Pw0iw4gWA PnGSQclAkWLTvpsyhfYAPWYyr+jJ9j6WmYwBE= 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=AZuSjJjnXd5LFR+J/20KJcgBKTKcc07VX8CmcX3dybZNN9Hr4ri8fjl0beqKQ3Nxtv 2MLo1sHiMy8+M4pcc0vIbu4fcbGn+ejkQMEhPFOPyRuhPofm57XkDrlOCwZQqi2o1v+z 87/U2CQXnj87S5/jI7+WHLb9BvNXlp73mK9wc= MIME-Version: 1.0 Received: by 10.140.128.12 with SMTP id a12mr205680rvd.283.1257095800832; Sun, 01 Nov 2009 09:16:40 -0800 (PST) In-Reply-To: References: <4AE8B3B3.7090103@gmail.com> <4AE95BEC.4040102@gmail.com> <4AE96168.8070605@gmail.com> Date: Mon, 2 Nov 2009 01:16:40 +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, 01 Nov 2009 17:16:48 -0000 Hi, Update: New handler class menu_viewer, new menu system is now a menu viewer handler. (emenu.mod) Remove reader handler class. New module lib.mod containing helper functions. Move common function for normal.mod to lib.mod. Move the menu out of normal.mod as standalone menu viewer. (nmenu.mod) Use common history function to handle command history in new menu system. Rename textmenu module as txtrgn, gfxmenu module as gfxrgn. configfile can be used to open sub menu in both new and old menu viewer. To start the new menu system, add these lines at the end of grub.cfg (pc mode): set gfxmode="640x480" set gfxfont="Unifont Regular 16" loadfont /menu/unifont.pf2 insmod vbe insmod png insmod coreui load_config /menu/default.txt default.txt is the theme file for new menu. Without the load_config command, it starts the old menu viewer. When new menu is started, it checks gfxmode variable, if it's set, it attempts to start graphic mode, otherwise it uses text mode. -- Bean My repository: https://launchpad.net/burg