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

iterm2 rich keyboard protocol support #1610

Merged
merged 40 commits into from
Apr 14, 2023
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
b2b8cd3
highly experimental support for iTerm2 input mode
unxed Apr 9, 2023
16ba0fc
Merge branch 'elfmz:master' into iterm2
unxed Apr 9, 2023
0843c59
merge kittys-keys fix
unxed Apr 9, 2023
04f3cbe
add more sequences (fixes F1, F2, F4 under WezTerm)
unxed Apr 9, 2023
eb9c84f
behave better on terminal focus lose
unxed Apr 10, 2023
3ca3f49
formatting
unxed Apr 10, 2023
5e459d3
Merge branch 'elfmz:master' into iterm2
unxed Apr 10, 2023
2ae121f
formatting
unxed Apr 10, 2023
d8b3e98
Merge branch 'iterm2' of https://github.com/unxed/far2l into iterm2
unxed Apr 10, 2023
c2f90f0
Merge branch 'elfmz:master' into iterm2
unxed Apr 10, 2023
7492f08
ignore unsupported esc sequences
unxed Apr 10, 2023
948c65a
Merge branch 'iterm2' of https://github.com/unxed/far2l into iterm2
unxed Apr 10, 2023
c4198fa
add flags change seqs support; debug output added
unxed Apr 10, 2023
bd9fe7a
map forwarddelete to backspace
unxed Apr 10, 2023
bb725b7
better del handling
unxed Apr 10, 2023
0e9b133
trying to fix ctrl+numbers
unxed Apr 10, 2023
45e3b42
workaround keydown events does not arrive sometimes in iterm2
unxed Apr 10, 2023
f153da0
fix a typo
unxed Apr 10, 2023
29263d0
Merge branch 'elfmz:master' into iterm2
unxed Apr 10, 2023
f0923ac
map right Command to right Control
unxed Apr 10, 2023
7a1eb8c
Merge branch 'iterm2' of https://github.com/unxed/far2l into iterm2
unxed Apr 10, 2023
6742418
Merge branch 'elfmz:master' into iterm2
unxed Apr 10, 2023
7484c5c
more logging
unxed Apr 10, 2023
3cce5fc
instead of mapping right Command to right Control, use right Option f…
unxed Apr 11, 2023
a0c74c3
cmd+v not working in iterm2 in 1337 mode (looks like iterm2's bug). w…
unxed Apr 11, 2023
ac36104
fix some problems in iterm2 cmd+v workaround
unxed Apr 11, 2023
98737ca
naming
unxed Apr 11, 2023
593b53a
Merge branch 'elfmz:master' into iterm2
unxed Apr 11, 2023
9418d2d
cmd key state change is reproted by iterm2 not as keydown by as flags…
unxed Apr 12, 2023
837a43d
make iterm2 cmd+v hack more reliable
unxed Apr 12, 2023
cb72b6a
another try to fix iterm2 workaround
unxed Apr 12, 2023
138b9f7
add some logging
unxed Apr 12, 2023
3e59007
forgot to set go variable
unxed Apr 12, 2023
273bc92
debugging...
unxed Apr 12, 2023
07d1d72
another try to fix iterm2 workaround
unxed Apr 12, 2023
8b56ed0
remove debug stuff
unxed Apr 12, 2023
3c7e8ba
comment out debug stuff
unxed Apr 12, 2023
6437a8f
Merge branch 'elfmz:master' into iterm2
unxed Apr 12, 2023
a23df17
comments
unxed Apr 13, 2023
36a3354
Merge branch 'iterm2' of https://github.com/unxed/far2l into iterm2
unxed Apr 13, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
better del handling
unxed committed Apr 10, 2023
commit bb725b7dda24f4423ca6a855f2c6dd6120899c80
4 changes: 2 additions & 2 deletions WinPort/src/Backend/TTY/TTYInputSequenceParser.cpp
Original file line number Diff line number Diff line change
@@ -800,7 +800,7 @@ size_t TTYInputSequenceParser::TryParseAsiTerm2EscapeSequence(const char *s, siz
case 0x24: vkc = VK_RETURN; break; // Enter
case 0x30: vkc = VK_TAB; break; // Tab
case 0x31: vkc = VK_SPACE; break; // Space
case 0x33: vkc = VK_DELETE; break; // Del
case 0x33: vkc = VK_BACK; break; // Del https://discussions.apple.com/thread/4072343?answerId=18799493022#18799493022
case 0x35: vkc = VK_ESCAPE; break; // Esc
case 0x37: vkc = VK_LWIN; break; // Command // fixme: mapping Command to Left Win (Super), it it ok?
case 0x38: vkc = VK_SHIFT; break; // Shift
@@ -834,7 +834,7 @@ size_t TTYInputSequenceParser::TryParseAsiTerm2EscapeSequence(const char *s, siz
//case 0x72: vkc = ; break; // Help
case 0x73: vkc = VK_HOME; break; // Home
case 0x74: vkc = VK_PRIOR; break; // PageUp
case 0x75: vkc = VK_BACK; break; // ForwardDelete
case 0x75: vkc = VK_DELETE; break; // ForwardDelete https://discussions.apple.com/thread/4072343?answerId=18799493022#18799493022
case 0x76: vkc = VK_F4; break; // F4
case 0x77: vkc = VK_END; break; // End
case 0x78: vkc = VK_F2; break; // F2