Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cursor keys for application keypad mode to default key bindings #719

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

tompng
Copy link
Member

@tompng tompng commented Jun 8, 2024

Add SS3 cursor keys to set_default_key_bindings_ansi_cursor

Added \eOA \eOB \eOC \eOD \eOF \eOH (arrow keys, home key, end key for application mode) to default key bindings.
Adding this, we can reduce set_default_key_bindings_comprehensive_list.

We added ANSI CSI cursor keys in #569.
This pull request adds SS3 keys that we forgot to add. https://vt100.net/docs/vt100-ug/chapter3.html#T3-6

Removing \eGA \eGB \eGC \eGD

Removed them because these are not specified in terminfo for any terminal emulator.
I think the bytes [27, 71, 65..68] is a mistake of [27, 79, 65..68]

In KDE source code, arrow keys are CSI + (A|B|C|D) or SS3 + (A|B|C|D)
https://invent.kde.org/utilities/konsole/-/blob/master/data/keyboard-layouts/default.keytab?ref_type=heads#L62-72

Copy link
Member

@ima1zumi ima1zumi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ima1zumi ima1zumi merged commit 546a425 into ruby:master Oct 7, 2024
40 checks passed
matzbot pushed a commit to ruby/ruby that referenced this pull request Oct 7, 2024
key bindings
(ruby/reline#719)

* Add SS3 arrow sequence to default key bindings

* Remove wrong KDE arrow sequence

ruby/reline@546a42522e
@tompng tompng deleted the application_key_cursors branch October 7, 2024 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants