From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Re: Menubar on text only terminals Date: Tue, 3 Apr 2007 11:28:32 +1200 Message-ID: <17937.37280.901597.817103@farnswood.snap.net.nz> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1175556694 13946 80.91.229.12 (2 Apr 2007 23:31:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 Apr 2007 23:31:34 +0000 (UTC) Cc: keramida@ceid.upatras.gr, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 03 01:31:27 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 1HYVzf-00055m-6H for ged-emacs-devel@m.gmane.org; Tue, 03 Apr 2007 01:31:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HYW2k-0001Iz-2n for ged-emacs-devel@m.gmane.org; Mon, 02 Apr 2007 19:34:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HYW2h-0001Ir-Ao for emacs-devel@gnu.org; Mon, 02 Apr 2007 19:34:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HYW2g-0001IZ-16 for emacs-devel@gnu.org; Mon, 02 Apr 2007 19:34:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HYW2f-0001IW-RB for emacs-devel@gnu.org; Mon, 02 Apr 2007 19:34:29 -0400 Original-Received: from viper.snap.net.nz ([202.37.101.8]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HYVzV-0007Yq-DF; Mon, 02 Apr 2007 19:31:13 -0400 Original-Received: from farnswood.snap.net.nz (2.62.255.123.dynamic.snap.net.nz [123.255.62.2]) by viper.snap.net.nz (Postfix) with ESMTP id 700773DA069; Tue, 3 Apr 2007 11:31:06 +1200 (NZST) Original-Received: by farnswood.snap.net.nz (Postfix, from userid 500) id D79B0627ED; Tue, 3 Apr 2007 00:28:33 +0100 (BST) In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.0.96.4 X-detected-kernel: Linux 2.4-2.6 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:68954 Archived-At: > 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. I'm surprised that it is so easy given that tmm.el isn't a simple piece of code. What happens with toggle and radio buttons? Are they also handled? If someone writes some code, I'll be happy to test it. -- Nick http://www.inet.net.nz/~nickrob