This package has been deprecated

Author message:

This package is now deprecated. Move to @xterm/addon-fit instead.

xterm-addon-fit
TypeScript icon, indicating that this package has built-in type declarations

0.8.0 • Public • Published

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';
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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i xterm-addon-fit

      Weekly Downloads

      131,340

      Version

      0.8.0

      License

      MIT

      Unpacked Size

      13.3 kB

      Total Files

      7

      Last publish

      Collaborators

      • tyriar