Commit b318174
Enable kitty keyboard protocol so Shift+Enter is distinguishable
In a stock xterm.js terminal, Shift+Enter and Enter both send `\r`, so
TUIs like Claude Code can't bind them differently and both submit.
Upgrading @xterm/xterm to a 6.1.0 beta and opting into
`vtExtensions.kittyKeyboard` lets the terminal advertise the kitty
keyboard protocol; when the inner program negotiates it, modified keys
round-trip as distinct CSI u sequences.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 067ff51 commit b318174
4 files changed
Lines changed: 23 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments