Environment:23blocks OS Ai maestro WebGL
| Knowledge Sources | |
|---|---|
| Domains | Client, Rendering |
| Last Updated | 2026-10-26 18:00 GMT |
Overview
WebGL: the browser's hardware-accelerated rendering context, used by xterm.js's WebGL renderer for fast terminal output. Falls back to canvas on context loss.
Description
xterm.js offers a WebGL addon for GPU-accelerated terminal rendering, which AI Maestro's `useTerminal` hook loads when available. WebGL contexts can be lost when the GPU driver resets or the tab is backgrounded; the hook listens for `webglcontextlost` and falls back to the canvas renderer so the terminal keeps working. This matters because a zero-size or lost terminal context breaks xterm entirely (per the terminal rules).
Usage
Use this environment for terminal rendering implementations that opt into GPU acceleration and must survive context loss.
System Requirements
| Category | Requirement | Notes |
|---|---|---|
| Browser | WebGL-capable | Falls back to canvas |
Dependencies
- `@xterm/addon-webgl`