zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Ray Andrews <rayandrews@eastlink.ca>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: mnemonic 'ENTER' with zcurses
Date: Sun, 7 Jan 2024 16:50:48 -0800	[thread overview]
Message-ID: <CAH+w=7ZHKMrDbHUTwGZMuMAmNW+2H5ORLDMhc+RbY1EC-kROMA@mail.gmail.com> (raw)
In-Reply-To: <44f0d2b0-cf76-499b-b172-d7c5c1d00b03@eastlink.ca>

On Sun, Jan 7, 2024 at 3:54 PM Ray Andrews <rayandrews@eastlink.ca> wrote:
>
> This is a pretty trivial matter but 'zcurses input' returns all sorts of
> helpful mnemonics like 'NPAGE', 'DOWN', 'PRESSED1' and so on.  Where are
> these defined?

You found the correct manual page, they're defined by the ncurses library.

> However that page includes 'ENTER'
> for the predictable thing, but zcurses seems to return no mnemonic for
> that, it's ugly old: " $'\n' ".

I'm not an expert on this, but I believe in this case ENTER means the
key on the keypad, usually but not always on the outside column
underneath "+" and to the right of "3".  This is not the same as the
key sometimes also called "return" to the right "jkl;'" on a qwerty
board, which does not have a mnemonic in this set.  It's possible
those two keys are mapped to the same thing by your terminal emulator,
which would make curses unable to distinguish them.


  reply	other threads:[~2024-01-08  0:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-07 23:54 Ray Andrews
2024-01-08  0:50 ` Bart Schaefer [this message]
2024-01-08  1:08   ` Ray Andrews
2024-01-08  1:34     ` Lawrence Velázquez
2024-01-08  1:43       ` Ray Andrews

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='CAH+w=7ZHKMrDbHUTwGZMuMAmNW+2H5ORLDMhc+RbY1EC-kROMA@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=rayandrews@eastlink.ca \
    --cc=zsh-users@zsh.org \
    /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 public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).