Xtermux
VS Code-like terminal manager in separate windows: tabs (horizontal or vertical), split panes, shell integration, links, find, mark mode and session restore — rendered with xterm.js. Shells are spawned with the node-pty bundled with VS Code (no native module shipped) and VS Code's own shell integration scripts are injected (bash, zsh, fish, pwsh). Requires VS Code ≥ 1.85.

Highlights
- Windows: as many Xtermux windows as you want (auxiliary windows or editor tabs); tabs move between them with their running processes and scrollback.
- Tabs: drag & drop, rename, color, icon, duplicate, restore closed tabs, MRU switcher, search across windows, progress ring, bell marks, vertical tabs.
- Panes: split, zoom, resize, swap, title bars, drag & drop (title bar or Alt+drag), read-only, broadcast input.
- Sessions: windows, layouts and scrollback restored when VS Code reopens; named and recent sessions; programs revived (
claude --continue).
- Shell integration: command decorations, copy a command's output, command navigation, recent commands and directories, notification when a long command finishes unseen.
- Text: mark mode (keyboard and block selection), copy as HTML / ANSI / single line, paste filters, selection highlight, find.
- Links: Ctrl+click on URLs,
path:line:col file links (tsc, gcc, Python, .NET, Node.js stack traces) and folders.
- Progress and notifications: OSC 9;4 progress on tabs, panes and the status bar; OSC 9 / 777 notifications.
- Terminal apps: Shift+Enter new lines and image paste for Claude Code and other TUIs, kitty keyboard protocol basics, Sixel and iTerm images.
- Profiles:
terminal.integrated.profiles, plus generated profiles for ~/.ssh/config hosts and WSL distributions.
- Customizable: every action is a
xtermux.* command; custom actions, toolbar buttons, VS Code key bindings and chords; colors follow the VS Code theme, with Xtermux-only overrides.
Quick start
- Install from the VS Code Marketplace (Extensions view: search
Xtermux, or code --install-extension mblet.xtermux). From a local build: code --install-extension xtermux-<version>.vsix.
- Open: Xtermux icon in the activity bar, or
Xtermux: Open in New Window / Open in Editor from the Command Palette.
- Use it:
| Keys |
Action |
| Ctrl+Shift+T |
New tab |
| Ctrl+Shift+E / Ctrl+Shift+O |
Split right / down |
| Alt+←/→/↑/↓ |
Focus neighbor pane |
| Ctrl+Shift+X |
Zoom pane |
| Ctrl+Shift+W |
Close pane |
| Ctrl+Tab |
Most recently used tab |
| Ctrl+F (Cmd+F) |
Find |
| Ctrl+Shift+M (Cmd+Shift+M) |
Mark mode |
Default keys only apply while a Xtermux window is focused. All keys: Key bindings.
Custom actions and toolbar:
// settings.json
"xtermux.actions": [
{ "id": "git-status", "name": "Git status", "icon": "git-commit", "text": "git status\r" },
{ "id": "dev", "name": "Dev layout", "icon": "layout-sidebar-right", "actions": ["splitRight", { "text": "npm run watch\r" }, "focusLeft"] }
],
"xtermux.toolbar": ["dev", "git-status", "separator", "toggleZoom", "splitDown", "splitRight", "openSession"]
More in the recipes: tmux-like keys, SSH fleet with broadcast input, safe production shell, Claude Code tips.
Documentation
- User guide: getting started, tabs, panes, windows and sessions, profiles, shell integration, text and clipboard, links, find, custom actions and toolbar, notifications and progress, appearance, recipes, troubleshooting
- Reference: commands, key bindings, settings, terminal.integrated settings, escape sequences
- Screenshots
Development
npm run compile — host (tsc) + check generated contributes and reference docs + webview bundle (esbuild, src/webview → media/webview.js).
npm run gen — regenerates package.json commands / keybindings and docs/reference/commands.md / settings.md from src/shared/actions.ts (the action catalog) and package.json.
npm test — unit tests (links, OSC, templates, keys, keybindings.json, snapshots, paste filters, SSH config, action catalog).
npm run screenshots [-- <name>…] — renders docs/images/*.png (and the demo.gif animation, needs ffmpeg) from the real webview bundle with a fake extension host and the Dark Modern or Light Modern theme (script/screenshots/: one scenario per image in scenarios.mjs, scripted shell output in mock.js; Playwright + Chromium: npx playwright install chromium if missing; fonts from XTERMUX_SHOT_FONTS, else Cascadia Mono / Segoe UI from the Windows fonts folder, else DejaVu).
./script/build.sh — builds the .vsix.
Disclaimer
This repository was largely vibe-coded (written with AI assistance). Expect bugs; please report them.
| |