Replace common/*, browser/*, and headless/* path-mapped imports with relative paths across src/, addons/, test/, and demo/. Remove paths from all tsconfig.json files and include addon typings directly. Addon sources import shared code via out-esbuild/ so unit tests resolve compiled modules with runtime const enums. Fix benchmark bare imports and normalize corrupted tsconfig formatting. Resolves #5896 Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>
@xterm/addon-fit
An addon for xterm.js that enables fitting the terminal's dimensions to a containing element. This addon requires xterm.js v4+.
Install
npm install --save @xterm/addon-fit
Usage
import { Terminal } from '@xterm/xterm';
import { FitAddon } from '@xterm/addon-fit';
const terminal = new Terminal();
const fitAddon = new FitAddon();
terminal.loadAddon(fitAddon);
terminal.open(containerElement);
fitAddon.fit();
See the full API for more advanced usage.