all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: David Kastrup <dak@gnu.org>
Cc: keramida@ceid.upatras.gr, emacs-devel@gnu.org
Subject: Re: Menubar on text only terminals
Date: Mon, 02 Apr 2007 15:31:36 +0300	[thread overview]
Message-ID: <uodm7555j.fsf@gnu.org> (raw)
In-Reply-To: <86abxrck6c.fsf@lola.quinscape.zz> (message from David Kastrup on Mon, 02 Apr 2007 09:25:15 +0200)

> From: David Kastrup <dak@gnu.org>
> Date: Mon, 02 Apr 2007 09:25:15 +0200
> Cc: Nick Roberts <nickrob@snap.net.nz>, 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.

  parent reply	other threads:[~2007-04-02 12:31 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-31  7:12 Menubar on text only terminals Nick Roberts
2007-03-31 20:42 ` Richard Stallman
2007-03-31 21:36   ` Nick Roberts
2007-04-02  2:13     ` Giorgos Keramidas
2007-04-02  4:56       ` Nick Roberts
2007-04-02  6:55         ` Giorgos Keramidas
2007-04-02  7:25           ` David Kastrup
2007-04-02  7:37             ` Giorgos Keramidas
2007-04-02  7:47               ` David Kastrup
2007-04-02 12:31             ` Eli Zaretskii [this message]
2007-04-02 23:28               ` Nick Roberts
2007-04-03  6:50                 ` David Kastrup
2007-04-03  8:07                 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uodm7555j.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=dak@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=keramida@ceid.upatras.gr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.