Package Exports
- @xterm/addon-fit
- @xterm/addon-fit/lib/addon-fit.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@xterm/addon-fit) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@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-fitUsage
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.