From: Eli Zaretskii <eliz@gnu.org>
To: Alex Hutcheson <alexhutcheson@google.com>,
Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 54027@debbugs.gnu.org
Subject: bug#54027: Wishlist: Support full CSI u specification for terminal input
Date: Sun, 27 Feb 2022 21:16:06 +0200 [thread overview]
Message-ID: <835yp0nmrt.fsf@gnu.org> (raw)
In-Reply-To: <CACjgaUcB0AtzEETZ-b-UfYmK+X9MCyTFhBoY9qjGQR5RR2DFKQ@mail.gmail.com> (message from Alex Hutcheson on Sun, 27 Feb 2022 13:53:56 -0500)
> From: Alex Hutcheson <alexhutcheson@google.com>
> Date: Sun, 27 Feb 2022 13:53:56 -0500
> Cc: 54027@debbugs.gnu.org
>
> My thinking is that it's very low-cost to support all possible encodings,
> even if it's unlikely that a terminal would actually send them.
>
> Using your example:
> \e[65;5u
> Would be a valid way to encode C-a according to the spec at
> http://www.leonerd.org.uk/hacks/fixterms/
>
> Most terminals will not encode it that way, and will instead send ^A,
> but it would be nice to support it gracefully if a terminal happens to
> send C-a encoded that way.
>
> In addition, the "just support all inputs encoded this way" approach
> seems simpler to understand and maintain than an approach that
> distinguishes between key combinations that have an existing
> alternative encoding and those that don't.
> The entries in the keymap won't be referenced unless Emacs actually
> receives matching input, so the cost of having entries for additional
> combinations seems fairly minimal.
>
> Maybe I'm misunderstanding keymap performance or some other
> important parameter, though?
Let's add Stefan to this discussion.
Stefan, any comments or thoughts?
>
> On Sun, Feb 27, 2022 at 1:38 PM Eli Zaretskii <eliz@gnu.org> wrote:
>
> > From: Alex Hutcheson <alexhutcheson@google.com>
> > Date: Sun, 27 Feb 2022 13:21:20 -0500
> > Cc: 54027@debbugs.gnu.org
> >
> > We basically need to support the cross-product of:
> > modifier combinations x ASCII characters
>
> No, AFAIU we only need to support keys+modifiers that are not
> otherwise supported already. E.g., C-a is already supported, so we
> don't need to add it, and similarly many other combinations are
> already supported. Or what am I missing?
>
> --
> Alex Hutcheson
> alexhutcheson@google.com
next prev parent reply other threads:[~2022-02-27 19:16 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-16 18:24 bug#54027: Wishlist: Support full CSI u specification for terminal input Alex Hutcheson via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-17 23:14 ` Richard Stallman
2022-02-18 8:30 ` Eli Zaretskii
2022-02-23 1:07 ` Alex Hutcheson via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-26 8:10 ` Eli Zaretskii
2022-02-27 18:21 ` Alex Hutcheson via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-27 18:38 ` Eli Zaretskii
2022-02-27 18:53 ` Alex Hutcheson via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-27 19:16 ` Eli Zaretskii [this message]
2022-02-28 3:49 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-28 12:17 ` Eli Zaretskii
2022-02-28 13:22 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-28 13:31 ` Eli Zaretskii
2022-02-28 15:25 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-25 1:25 ` Alex Hutcheson via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-25 2:33 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
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=835yp0nmrt.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=54027@debbugs.gnu.org \
--cc=alexhutcheson@google.com \
--cc=monnier@iro.umontreal.ca \
/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.