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

the kitty keyboard protocol as implemented by iTerm2 seems to send different codes for F1-F4 keys #2818

Open
tstack opened this issue Dec 14, 2024 · 2 comments

Comments

@tstack
Copy link

tstack commented Dec 14, 2024

iTerm2 seems to send CSI 11~ for F1 instead of SS3 P as shown here. I "fixed" this by adding mappings for CSI 11~ through CSI 14~ for F1-F4 in here:

notcurses/src/lib/in.c

Lines 2103 to 2108 in 3a3c75e

{ .esc = "\x1bOP", .key = NCKEY_F01, },
{ .esc = "\x1bOQ", .key = NCKEY_F02, },
{ .esc = "\x1bOR", .key = NCKEY_F03, },
{ .esc = "\x1bOS", .key = NCKEY_F04, },
{ .esc = "\x1b[15~", .key = NCKEY_F05, },
{ .esc = "\x1b[17~", .key = NCKEY_F06, },

@dankamongmen
Copy link
Owner

just letitng you know i'm seeing these, ytou're awesome, thanks for filing them, and i will jump up on this as soon as i'm feeling froggy. you're a fucking champion.

@tstack
Copy link
Author

tstack commented Dec 14, 2024

just letitng you know i'm seeing these

No worries, I know life exists outside of maintaining open source projects. notcurses has been a huge improvement over ncurses for me, thanks for all your efforts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants