From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Menubar on text only terminals Date: Mon, 02 Apr 2007 15:31:36 +0300 Message-ID: References: <17934.2504.477668.354102@farnswood.snap.net.nz> <17934.54358.129732.694345@farnswood.snap.net.nz> <20070402021343.GA2989@kobe.laptop> <17936.36075.282286.535939@farnswood.snap.net.nz> <20070402065536.GA4779@kobe.laptop> <86abxrck6c.fsf@lola.quinscape.zz> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1175517108 20234 80.91.229.12 (2 Apr 2007 12:31:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 Apr 2007 12:31:48 +0000 (UTC) Cc: keramida@ceid.upatras.gr, emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 02 14:31:45 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HYLhI-00023T-M6 for ged-emacs-devel@m.gmane.org; Mon, 02 Apr 2007 14:31:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HYLkK-000382-AH for ged-emacs-devel@m.gmane.org; Mon, 02 Apr 2007 08:34:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HYLkG-00037T-94 for emacs-devel@gnu.org; Mon, 02 Apr 2007 08:34:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HYLkF-00037E-Q0 for emacs-devel@gnu.org; Mon, 02 Apr 2007 08:34:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HYLkF-000378-Jw for emacs-devel@gnu.org; Mon, 02 Apr 2007 08:34:47 -0400 Original-Received: from nitzan.inter.net.il ([213.8.233.22]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HYLhC-0006Mq-F6; Mon, 02 Apr 2007 08:31:38 -0400 Original-Received: from HOME-C4E4A596F7 ([81.5.34.87]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id GKX92342 (AUTH halo1); Mon, 2 Apr 2007 15:31:34 +0300 (IDT) In-reply-to: <86abxrck6c.fsf@lola.quinscape.zz> (message from David Kastrup on Mon, 02 Apr 2007 09:25:15 +0200) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:68931 Archived-At: > From: David Kastrup > Date: Mon, 02 Apr 2007 09:25:15 +0200 > Cc: Nick Roberts , rms@gnu.org, emacs-devel@gnu.org > > I think that the MSDOS port has a more traditional text menu (which > closely resembles the graphical menus by appearing in-place). > > It would probably be better to port that functionality to text > terminals in general before thinking about what to do with toolbars: I > don't think that many people consider tmm a good idea. And it > certainly is a good hint that for MSDOS, one of the few console-only > parts, someone went to the pain to implement something else. Indeed. I suggested long ago to retrofit the MSDOS code into a Posix text terminal. This should be almost trivial: all we need is to replace direct screen writes with terminfo commands and stdio output. All the rest can be kept almost verbatim. The relevant functions are XMenuCreate, XMenuAddPane, XMenuAddSelection, XMenuLocate, XMenuActivate, and XMenuDestroy (and their few subroutines), all found on src/msdos.c. Of these, XMenuActivate is the only one that is complicated; all the rest are really trivial.