TUI CSI-u vs code 1.140.0, atomcode 5.2 #1618
rdsz 10 7
1
CSI-u
AtomCode Windows VS Code Kitty Windows console input CSI-u
- Esc ESC[27u [27u
- Ctrl+C ESC[99;5u [99;5u
- TUI
v5.2.1 release/v5.2.1
7605ed604 fix(tui): Windows / JediTerm Kitty
AtomCode Windows Kitty keyboard progressive enhancement Win32 console EscCtrl+C Enter [27u[99;5u Kitty shell
5.2 Esc/Ctrl+C
release/v5.2.1
issue VS Code 1.140 Esc [27uCtrl+C [99;5u 7605ed604 + 6a144cebd
TUI Kitty
ENTERKEYS_ON\x1b[>1ucaps::wants_keyboard_protocol()surface 3- tuix
should_enable_kitty_keyboardbug- Windows API CSI-u VS Code 1.109+ Esc
ESC[27uCtrl+CESC[99;5uissue - JediTerm CSI-u
- Windows API CSI-u VS Code 1.109+ Esc
ATOMCODE_KITTY/WindowsATOMCODE_KITTY=16a144cebdLEAVE\x1b[<uWindows
the_keyboard_protocol_is_asked_for_only_where_it_can_be_read |
VS Code on Windows / / JediTerm / ATOMCODE_JEDITERM / ATOMCODE_KITTY=1 / Windows / KITTY=0 |
|
ansi leave_is_the_exact_inverse_of_enter |
ENTER [>1uLEAVE [<u shell |
|
| surface 3 | KEYS_ON wants_keyboard_protocol() |
atomcode-tuicaps 22 ansi 23 surface 30 0cargo fmt --all -- --checkbash gates/compile.shworkspace
- Windows + VS Code 1.140 macOS
- Windows
LEAVE
Windows
macOS ""Windows + VS Code 1.140 Windows
HEAD atomcode 5.2.2 (3c931cf17+dirty)
7605ed604fix(tui): Windows / JediTerm Kitty VS Code Esc[27u6a144cebdfix(tui):ATOMCODE_KITTY=1Windows
ENTER\x1b[>1uansi.rs:58ansi::KEYS_ON-
caps::wants_keyboard_protocol()caps.rs:232Windows falseif windows { return false; }JediTermATOMCODE_KITTYWindows surface.rs:1092:2327:2382LEAVE\x1b[<u
Windows
Windowscfg!(windows)=true Windows
caps::tests |
22 passed / 0 failed |
ansi::tests |
22 passed / 0 failed |
surface::tests |
26 passed / 0 failed |
the_keyboard_protocol_is_asked_for_only_where_it_can_be_read |
ok |
leave_is_the_exact_inverse_of_enter |
ok |
Windows API atomcode_tui::caps::wants_keyboard_protocol()
crate
cfg!(windows) |
wants_keyboard_protocol() |
|
|---|---|---|
| true | false | |
ATOMCODE_KITTY=1 |
true | false |
ATOMCODE_KITTY=true |
true | false |
Windows Kitty 6a144cebd Windows
KEYS_ONwants_keyboard_protocol()surface.rs:1092/2327/2382ENTER[>1u!ENTER.contains("[>1u")ansi.rs:1194-1197
- VS Code 1.140 Esc / Ctrl+C shell
winptywp != nullptr && cols > 0 && rows > 0TUI " Esc[27u" VS Code 1.140 - Windows Windows false+
Windows Kitty ConPTY ESC[27u / ESC[99;5u Esc /Ctrl+C Enter LEAVE \x1b[<u
[27u Esc Kitty
ESC [ 27 u27 Esc u
[99;5u
Ctrl+C VS Code Kitty
Ctrl+Shift+C
[27u Esc ESC [ 27 u
[99;5u Ctrl+C ESC [ 99 ; 5
u
TERM_PROGRAM=vscode
VSCODE_INJECTION=1 AtomCode VS Code
1.140.0VS Code 1.109.5
Kitty
terminal.integrated.enableKittyKeyboardProtocol
true EscCtrl+C
CSI-u AtomCode TUI
Kitty
"Windows "
ESC
Esc/Ctrl+C