Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mpf79-0008Bi-Uk for mharc-grub-devel@gnu.org; Mon, 21 Sep 2009 05:23:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mpf76-00089V-RK for grub-devel@gnu.org; Mon, 21 Sep 2009 05:23:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mpf76-000896-5Q for grub-devel@gnu.org; Mon, 21 Sep 2009 05:23:16 -0400 Received: from [199.232.76.173] (port=40028 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mpf75-000890-T7 for grub-devel@gnu.org; Mon, 21 Sep 2009 05:23:15 -0400 Received: from fg-out-1718.google.com ([72.14.220.158]:8142) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mpf75-0003Dm-It for grub-devel@gnu.org; Mon, 21 Sep 2009 05:23:15 -0400 Received: by fg-out-1718.google.com with SMTP id e21so705178fga.12 for ; Mon, 21 Sep 2009 02:23:14 -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:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=H6KdtFf/h0qvvT00XCrN7vYwPrdyPTdQCvkE5ibgupU=; b=xe11DDhp/USGFtCuFtwFZv+gwDKQFp3MPRAL68bmk+hvuLSzm+TNUm2wuVdikZ2lgE qkD2NKasj1qaj2pv4+PxbZhYiUBHhakOV6KGxJCKB24jMim0yTHSk4d1QWv2zkjwSgvo C9B3mLP1PMqx8lzFcM6yTOSRgDmkP1fgjNc+8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=ixjjBma45l7klZeZMYZqWGaSED0ddnvzegsoMoTrG4eg2R6VHBg5NNoCUwiEA4I2M+ So3w+KA9Q0pYBBKzxpp/QTazmzRiKhxSFyCPVz6CDlJlShCyic3DgDRMYCwa2b7abgay 8FdOkm6a2g9j3WJNXFplX9TSk/LimbppNRcd4= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.86.225.38 with SMTP id x38mr4335677fgg.59.1253524994466; Mon, 21 Sep 2009 02:23:14 -0700 (PDT) In-Reply-To: <2e59e6970909201151s77de49aq25e42c7a92dde120@mail.gmail.com> References: <2e59e6970909191155m638c523fg7540528f37223f12@mail.gmail.com> <2e59e6970909201151s77de49aq25e42c7a92dde120@mail.gmail.com> Date: Mon, 21 Sep 2009 11:23:14 +0200 X-Google-Sender-Auth: 38613918b1d265e2 Message-ID: From: Michal Suchanek 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: Mon, 21 Sep 2009 09:23:17 -0000 2009/9/20 richardvoigt@gmail.com : > On Sun, Sep 20, 2009 at 3:31 AM, Michal Suchanek wr= ote: >> 2009/9/19 richardvoigt@gmail.com : >>> On Sat, Sep 19, 2009 at 1:45 PM, Michal Suchanek = wrote: >>>> Hello >>>> >>>> why does the menu system have a glyph drawing function? >>>> >>>> Is the one in font.c not suitable? >>>> >>>> Why are there two methods for returning text width and height, one in >>>> gfx_region in pixels, the other in text_region in characters? Does >>>> size in characters make any sense? There might be proportional fonts >>>> or at least fonts of different size in the future. >>> >>> Pixels and proportional fonts are meaningless to a serial console. >>> >> So is element placement. > > I know of multiple systems that support multiple columns, status bar, > menu bar, popup dialogs, etc in text mode over a serial connection. > If those things are considered out of scope for a bootloader, I'd tend > to agree. =C2=A0But people seem to be defining rich interfaces for grub a= nd > to do so requires the ability to measure sizes in characters. > Certainly, the Linux console also emulates what once used to be a serial terminal. The problem is that there are many types of different terminals and terminal emulators which makes this somewhat difficult. For this to work we would need 1) something like curses and its terminfo database in grub 2) know which terminal is connected to grub Since (2) cannot be reliably determined by grub we must support the case when the terminal is unknown and only very simple formatting can be used (dumb terminal). It may be nice to use something like curses when the user does configure the terminal type but I think this would be very rare use and need not be part of the menu system initially. It should be easy to adapt the code that deals with text mode for this case if desired. Thanks Michal