fix(tui): restore shifted xterm input

closes #3436
This commit is contained in:
Mario Zechner
2026-04-20 15:36:10 +02:00
parent da6a81d398
commit 6b55d6859d
6 changed files with 106 additions and 14 deletions

View File

@@ -374,6 +374,22 @@ describe("Editor component", () => {
assert.strictEqual(editor.getText(), "");
});
it("inserts shifted CSI-u letters as text", () => {
const editor = new Editor(createTestTUI(), defaultEditorTheme);
editor.handleInput("\x1b[69;2u");
assert.strictEqual(editor.getText(), "E");
});
it("inserts shifted xterm modifyOtherKeys letters as text", () => {
const editor = new Editor(createTestTUI(), defaultEditorTheme);
editor.handleInput("\x1b[27;2;69~");
assert.strictEqual(editor.getText(), "E");
});
});
describe("Unicode text editing behavior", () => {