- 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>
124 lines
4.8 KiB
JSON
124 lines
4.8 KiB
JSON
[
|
|
{
|
|
"dark": true,
|
|
"id": "lutra-dark",
|
|
"labelKey": "theme.lutraDark",
|
|
"tokens": {
|
|
"--lt-accent": "#d39a5c",
|
|
"--lt-bg": "#1f1d1b",
|
|
"--lt-border": "#34302c",
|
|
"--lt-editor-active-line-bg": "#232221",
|
|
"--lt-editor-bg": "#191817",
|
|
"--lt-editor-cursor": "#d39a5c",
|
|
"--lt-editor-gutter-bg": "#191817",
|
|
"--lt-editor-gutter-fg": "#9a928a",
|
|
"--lt-editor-match-bg": "#3a2f23",
|
|
"--lt-editor-selection-bg": "#513f2c",
|
|
"--lt-error": "#ef7b6c",
|
|
"--lt-fg": "#e6e1da",
|
|
"--lt-fg-muted": "#9a928a",
|
|
"--lt-font-mono": "ui-monospace, \"Cascadia Code\", Menlo, Consolas, monospace",
|
|
"--lt-font-size-editor": "14px",
|
|
"--lt-font-size-small": "12px",
|
|
"--lt-font-size-ui": "13px",
|
|
"--lt-font-ui": "system-ui, -apple-system, \"Segoe UI\", Roboto, Ubuntu, sans-serif",
|
|
"--lt-notice-bg": "#3a3025",
|
|
"--lt-statusbar-bg": "#24211f",
|
|
"--lt-statusbar-fg": "#b8afa6",
|
|
"--lt-syntax-attribute": "#cdb87e",
|
|
"--lt-syntax-comment": "#958d84",
|
|
"--lt-syntax-constant": "#c4a0d6",
|
|
"--lt-syntax-function": "#e6c46f",
|
|
"--lt-syntax-keyword": "#d39a5c",
|
|
"--lt-syntax-number": "#e3a1a8",
|
|
"--lt-syntax-operator": "#b8afa6",
|
|
"--lt-syntax-string": "#a9bd7e",
|
|
"--lt-syntax-tag": "#e08b70",
|
|
"--lt-syntax-type": "#7fbac6",
|
|
"--lt-syntax-variable": "#d8bba6",
|
|
"--lt-tab-active-bg": "#191817",
|
|
"--lt-tab-modified": "#d39a5c",
|
|
"--lt-terminal-ansi-black": "#2e2b28",
|
|
"--lt-terminal-ansi-blue": "#8fa8e0",
|
|
"--lt-terminal-ansi-bright-black": "#9a928a",
|
|
"--lt-terminal-ansi-bright-blue": "#aebff0",
|
|
"--lt-terminal-ansi-bright-cyan": "#a2d3dc",
|
|
"--lt-terminal-ansi-bright-green": "#c2d69a",
|
|
"--lt-terminal-ansi-bright-magenta": "#dbbde8",
|
|
"--lt-terminal-ansi-bright-red": "#f59a8d",
|
|
"--lt-terminal-ansi-bright-white": "#f5f1ec",
|
|
"--lt-terminal-ansi-bright-yellow": "#f2d88e",
|
|
"--lt-terminal-ansi-cyan": "#7fbac6",
|
|
"--lt-terminal-ansi-green": "#a9bd7e",
|
|
"--lt-terminal-ansi-magenta": "#c4a0d6",
|
|
"--lt-terminal-ansi-red": "#ef7b6c",
|
|
"--lt-terminal-ansi-white": "#d0c9c1",
|
|
"--lt-terminal-ansi-yellow": "#e6c46f",
|
|
"--lt-terminal-bg": "#191817",
|
|
"--lt-terminal-cursor": "#d39a5c",
|
|
"--lt-terminal-fg": "#e6e1da",
|
|
"--lt-terminal-selection-bg": "#513f2c"
|
|
}
|
|
},
|
|
{
|
|
"dark": false,
|
|
"id": "lutra-light",
|
|
"labelKey": "theme.lutraLight",
|
|
"tokens": {
|
|
"--lt-accent": "#965a22",
|
|
"--lt-bg": "#f4f1ec",
|
|
"--lt-border": "#ddd6cd",
|
|
"--lt-editor-active-line-bg": "#f1efed",
|
|
"--lt-editor-bg": "#fbfaf8",
|
|
"--lt-editor-cursor": "#965a22",
|
|
"--lt-editor-gutter-bg": "#fbfaf8",
|
|
"--lt-editor-gutter-fg": "#6b625a",
|
|
"--lt-editor-match-bg": "#ece2d8",
|
|
"--lt-editor-selection-bg": "#e5d7c9",
|
|
"--lt-error": "#b23a29",
|
|
"--lt-fg": "#2a2622",
|
|
"--lt-fg-muted": "#6b625a",
|
|
"--lt-font-mono": "ui-monospace, \"Cascadia Code\", Menlo, Consolas, monospace",
|
|
"--lt-font-size-editor": "14px",
|
|
"--lt-font-size-small": "12px",
|
|
"--lt-font-size-ui": "13px",
|
|
"--lt-font-ui": "system-ui, -apple-system, \"Segoe UI\", Roboto, Ubuntu, sans-serif",
|
|
"--lt-notice-bg": "#e9dfd4",
|
|
"--lt-statusbar-bg": "#ece7e0",
|
|
"--lt-statusbar-fg": "#5a5149",
|
|
"--lt-syntax-attribute": "#695d1a",
|
|
"--lt-syntax-comment": "#6e665e",
|
|
"--lt-syntax-constant": "#73479a",
|
|
"--lt-syntax-function": "#7a5808",
|
|
"--lt-syntax-keyword": "#965a22",
|
|
"--lt-syntax-number": "#a03a4e",
|
|
"--lt-syntax-operator": "#5a5149",
|
|
"--lt-syntax-string": "#4e6a24",
|
|
"--lt-syntax-tag": "#a5432a",
|
|
"--lt-syntax-type": "#24697a",
|
|
"--lt-syntax-variable": "#7f4a34",
|
|
"--lt-tab-active-bg": "#fbfaf8",
|
|
"--lt-tab-modified": "#965a22",
|
|
"--lt-terminal-ansi-black": "#2a2622",
|
|
"--lt-terminal-ansi-blue": "#2f55a4",
|
|
"--lt-terminal-ansi-bright-black": "#6b625a",
|
|
"--lt-terminal-ansi-bright-blue": "#233f7f",
|
|
"--lt-terminal-ansi-bright-cyan": "#1a5260",
|
|
"--lt-terminal-ansi-bright-green": "#3b5418",
|
|
"--lt-terminal-ansi-bright-magenta": "#5a3480",
|
|
"--lt-terminal-ansi-bright-red": "#8f2a1c",
|
|
"--lt-terminal-ansi-bright-white": "#f4f1ec",
|
|
"--lt-terminal-ansi-bright-yellow": "#5f4404",
|
|
"--lt-terminal-ansi-cyan": "#24697a",
|
|
"--lt-terminal-ansi-green": "#4e6a24",
|
|
"--lt-terminal-ansi-magenta": "#73479a",
|
|
"--lt-terminal-ansi-red": "#b23a29",
|
|
"--lt-terminal-ansi-white": "#ddd6cd",
|
|
"--lt-terminal-ansi-yellow": "#7a5808",
|
|
"--lt-terminal-bg": "#fbfaf8",
|
|
"--lt-terminal-cursor": "#965a22",
|
|
"--lt-terminal-fg": "#2a2622",
|
|
"--lt-terminal-selection-bg": "#e5d7c9"
|
|
}
|
|
}
|
|
]
|