Felipe Coury
fe0d472c4c
Adapt keyboard event reporting to the terminal ( #35021 )
...
## Why
Reporting key event types can leak an exit-shortcut release into the parent
shell in iTerm2 and can cause tmux's `xterm` extended-key format to lose
Shift+Enter.
## What changed
- Select keyboard enhancement flags using the detected terminal and tmux
extended-key format.
- Disable event-type reporting for iTerm2 and tmux's `xterm` format while
retaining alternate-key reporting.
- Preserve event-type reporting for other terminals and tmux's `csi-u`
format so repeat events remain distinguishable.
## Testing
Added unit coverage for iTerm2, Kitty, unknown terminals, and both tmux
extended-key formats.
GitOrigin-RevId: 03a6b9d5443f626da5279413a14933af2a0ec3e5
2026-07-23 22:35:23 +00:00
..
2026-07-23 22:31:53 +00:00
2026-06-11 22:26:31 -07:00
2026-07-23 21:06:37 +00:00
2026-07-23 22:31:53 +00:00
2026-07-20 14:44:25 +00:00
2026-07-15 21:03:49 +00:00
2026-07-22 17:38:11 +00:00
2026-07-11 01:15:48 +00:00
2026-07-17 23:19:12 +00:00
2026-07-23 21:03:40 +00:00
2026-07-18 18:00:51 +00:00
2026-07-22 15:46:00 +00:00
2026-07-22 17:38:11 +00:00
2026-07-23 21:03:40 +00:00
2026-07-21 19:17:18 +00:00
2026-07-20 13:50:06 +00:00
2026-07-23 22:35:23 +00:00
2026-07-21 19:17:18 +00:00
2026-07-15 02:35:49 +00:00
2026-07-21 14:25:18 +00:00
2026-07-15 01:07:29 +00:00
2026-07-21 20:13:08 +00:00
2026-07-22 23:45:45 +00:00
2026-06-15 19:25:54 -07:00
2026-07-23 19:56:52 +00:00
2026-07-20 13:58:17 +00:00
2026-06-17 19:52:43 +02:00
2026-07-20 15:44:37 +00:00
2026-06-01 18:01:52 +02:00
2026-06-05 08:32:07 -07:00
2026-06-05 08:32:07 -07:00
2026-07-22 15:46:00 +00:00
2026-07-18 03:58:20 +00:00
2026-07-21 19:08:58 +00:00
2026-07-21 15:53:33 +00:00
2026-07-15 22:49:52 +00:00
2026-07-21 02:55:11 +00:00
2026-07-15 22:49:52 +00:00
2026-07-15 21:03:49 +00:00
2026-07-15 21:03:49 +00:00
2026-07-15 22:49:52 +00:00
2026-06-08 21:32:46 -07:00
2026-06-05 08:34:34 -07:00
2026-06-05 08:32:53 -07:00
2026-06-12 17:14:27 -07:00
2026-07-19 21:34:05 +00:00
2026-07-18 18:00:51 +00:00
2026-07-19 17:32:53 +00:00
2026-05-31 15:42:39 -03:00
2026-07-23 21:03:40 +00:00
2026-07-23 19:24:41 +00:00
2026-07-20 13:45:29 +00:00
2026-06-24 03:10:20 +00:00
2026-06-11 09:56:09 -07:00
2026-06-26 19:27:31 +00:00
2026-06-26 19:27:31 +00:00
2026-06-08 17:02:36 -07:00
2026-07-19 19:33:31 +00:00
2026-07-19 16:50:54 +00:00
2026-06-08 17:02:36 -07:00
2026-07-18 18:00:51 +00:00
2026-07-12 19:18:37 +00:00
2026-07-17 23:07:40 +00:00
2026-05-25 09:53:39 -07:00
2026-07-20 15:39:31 +00:00
2026-07-21 19:17:18 +00:00
2026-07-22 22:54:28 +00:00
2026-07-23 19:24:41 +00:00
2026-07-21 20:13:08 +00:00
2026-07-23 19:19:35 +00:00
2026-06-18 15:06:23 -07:00
2026-07-20 15:44:37 +00:00
2026-07-21 20:13:08 +00:00
2026-06-10 11:24:29 -07:00
2026-07-20 18:46:02 +00:00
2026-07-18 18:19:39 +00:00
2026-07-20 15:35:12 +00:00
2026-07-20 15:39:31 +00:00
2026-07-20 15:35:12 +00:00
2026-06-16 09:09:24 -07:00
2026-06-05 17:23:45 -07:00
2026-06-10 17:55:49 -07:00
2026-05-26 20:59:47 -07:00
2026-05-26 20:59:47 -07:00
2026-07-19 16:46:58 +00:00
2026-07-17 20:46:18 +00:00
2026-06-15 08:23:02 -07:00
2026-07-21 22:11:34 +00:00
2026-07-06 16:33:13 -04:00
2026-07-08 12:17:58 -04:00
2026-07-20 13:45:29 +00:00
2026-06-12 09:26:08 -07:00
2026-06-12 09:26:08 -07:00
2026-07-08 12:17:58 -04:00
2026-06-11 09:23:08 -07:00
2026-06-11 18:16:39 -07:00
2026-06-22 04:25:07 -07:00
2026-06-22 04:25:07 -07:00
2026-07-21 14:21:00 +00:00