Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mo1Xo-0002ne-CF for mharc-grub-devel@gnu.org; Wed, 16 Sep 2009 16:56:04 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mo1Xn-0002lc-1q for grub-devel@gnu.org; Wed, 16 Sep 2009 16:56:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mo1Xi-0002dg-83 for grub-devel@gnu.org; Wed, 16 Sep 2009 16:56:02 -0400 Received: from [199.232.76.173] (port=45428 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mo1Xi-0002dS-2z for grub-devel@gnu.org; Wed, 16 Sep 2009 16:55:58 -0400 Received: from mail-px0-f198.google.com ([209.85.216.198]:62066) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mo1Xh-0005lH-MW for grub-devel@gnu.org; Wed, 16 Sep 2009 16:55:57 -0400 Received: by pxi36 with SMTP id 36so4250188pxi.6 for ; Wed, 16 Sep 2009 13:55:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=8Q/lCZHx0MnjnJqk6CQvJGFKLDeFFn1hPvMD/rQ22As=; b=rLTWeyNAFelEWV8E376U6WziYcRN0uibTWZN2TFJi5aoKXHaNMGa1Sif8IDvG0qtgM ix3mlbW7hRO58PobHd/0roQ7FZpa+/9zCsEdKuH+VCJTXIoM0EzZ1bqTNraHCW7vlJAf GnskHTCyFXKxPodTYVIQRVDJBV7b/T0/635qE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=DrSemEMu0/UMc/eH2SyzgAktSxGlEIH17Hgg9ijA3bUYnz7bpuBmd80HVxD+j+sSgX 69Wl5M93U3qqak2vDeo+ly4xNxeqPCpnRmcftzhSXZliJ4hii+p+4OHyUzuB1AKrs23b qqWAARaFtM9so6o3KpWnChX+J165aB+BF3saM= MIME-Version: 1.0 Received: by 10.140.141.20 with SMTP id o20mr1138876rvd.188.1253134555592; Wed, 16 Sep 2009 13:55:55 -0700 (PDT) Date: Thu, 17 Sep 2009 04:55:55 +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: [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: Wed, 16 Sep 2009 20:56:03 -0000 Hi, Now that the basic architecture has been decided, I start to work on the actual coding. The code will be pushed to the menu branch of my gitbub: repo: http://github.com/bean123/grub/. First version is done, this implements the low level region API, no component yet, but you can construct the ui manually, I've added a menutest command to run some test. It can be started in grub.cfg like this (should be run in console mode); set gfxmode="640x480" loadfont /unifont.pf2 ismod vbe insmod png menutest It runs four tests, it would pause after each test, press any key to continue. 1, It starts with text mode with three rects, the second rect have 3 texts, but the last one is outside the view port and therefore not visible. 2. It moves the second rect to the top and change the view port, now the third text is visible but the first is hidden. 3-4 rerun the following test in graphic mode. If /r1.png, /r2.png, or /r3.png exists, the image will replace the corresponding rect box. BTW, I've disabled double buffer temperately for testing purpose. The new algorithm ensures that only the necessary region would be updated, the screen shouldn't blink even without double buffer support. -- Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/