Environment:23blocks OS Ai maestro xterm js
| Knowledge Sources | |
|---|---|
| Domains | Terminal, Client |
| Last Updated | 2026-10-26 18:00 GMT |
Overview
xterm.js: the browser terminal emulator used to render agent tmux sessions in the AI Maestro UI and to run a headless terminal on the server.
Description
AI Maestro uses xterm.js for in-browser terminal rendering (`hooks/useTerminal.ts`, `contexts/TerminalContext.tsx`) and a headless server-side xterm for off-screen rendering and transcript capture (`lib/headless-terminal.mjs`). Per the terminal rules: `convertEol: false`; load addons, then `open()`, then `fitAddon.fit()`; initialise once on mount (empty dependency array); inactive tabs use `visibility: hidden` (not `display: none`) because zero-size breaks xterm.
Usage
Use this environment for terminal rendering and headless terminal capture. Follow the xterm lifecycle rules in CLAUDE.md.
System Requirements
| Category | Requirement | Notes |
|---|---|---|
| Browser | Any modern browser | With Canvas/WebGL addon support |
Dependencies
- `@xterm/xterm`
- `@xterm/addon-fit`
- `@xterm/addon-canvas` / `@xterm/addon-webgl`