M3.6: integrated terminal with PTY sessions and xterm.js sub-tabs
- crates/terminal: portable-pty sessions (ConPTY on Windows) with reader, writer and waiter threads, UTF-8 chunking, a 1 MiB output buffer with backpressure, a non-blocking input queue, resize, kill and exit codes; default shell pwsh -> powershell -> cmd on Windows, $SHELL or /bin/sh. - Engine: terminal.create/input/resize/close, terminalOutput (capped per terminal and per pump, round-robin) and terminalExited through the pump; terminals close with the project and on app.quit. - UI: Terminal tab in the bottom panel (tabs next to Find), xterm.js with the fit addon, sub-tabs, copy/paste, a focus rule that leaves plain Ctrl keys to the shell, terminal.open (Mod+Shift+T), --lt-terminal-* ANSI tokens in both themes (text colours AA) and a 4.5:1 minimum contrast. - Tests: real-shell crate tests (UTF-8, backpressure), engine and TCP control tests, Vitest with a mocked xterm; live check on port 7936; docs and parity rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
5fa7f0c8b3
commit
a8daf269fb
45 changed files with 3935 additions and 49 deletions
|
|
@ -13,6 +13,7 @@
|
|||
"command.menu.open": "Open Main Menu",
|
||||
"command.palette.open": "Command Palette",
|
||||
"command.settings.open": "Settings…",
|
||||
"command.terminal.open": "Terminal",
|
||||
"command.unavailable": "{command} cannot run right now",
|
||||
"command.view.toggleProjectTree": "Show or Hide Project",
|
||||
"command.view.toggleStructure": "Show or Hide Structure",
|
||||
|
|
@ -22,6 +23,7 @@
|
|||
"common.dontSave": "Don't Save",
|
||||
"common.error.unexpectedResult": "unexpected result of {command}",
|
||||
"common.save": "Save",
|
||||
"common.toolWindow.bottomTabs": "Bottom tool windows",
|
||||
"common.toolWindow.collapse": "Collapse {title}",
|
||||
"common.toolWindow.expand": "Expand {title}",
|
||||
"common.toolWindow.hide": "Hide {title}",
|
||||
|
|
@ -162,6 +164,17 @@
|
|||
"structure.kind.trait": "Trait",
|
||||
"structure.toolWindow.title": "Structure",
|
||||
"structure.tree.label": "Declarations of the file",
|
||||
"terminal.error.badAnswer": "The engine answered without a terminal id",
|
||||
"terminal.error.create": "Cannot start a terminal: {message}",
|
||||
"terminal.exited.closed": "Terminal closed",
|
||||
"terminal.exited.code": "Process exited with code {code}",
|
||||
"terminal.new": "New terminal",
|
||||
"terminal.tab.close": "Close {title}",
|
||||
"terminal.tab.exited": "{title} (ended)",
|
||||
"terminal.tab.first": "Local",
|
||||
"terminal.tab.numbered": "Local ({n})",
|
||||
"terminal.tabs.label": "Terminals",
|
||||
"terminal.toolWindow.title": "Terminal",
|
||||
"theme.lutraDark": "Lutra Dark",
|
||||
"theme.lutraLight": "Lutra Light"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue