jamesread 7d020873d6 fix: #672 Empty execution tracking ID in InternalLogEntry (backport to release/2k) il y a 11 mois
..
lib 7d020873d6 fix: #672 Empty execution tracking ID in InternalLogEntry (backport to release/2k) il y a 11 mois
src 7d020873d6 fix: #672 Empty execution tracking ID in InternalLogEntry (backport to release/2k) il y a 11 mois
typings 7d020873d6 fix: #672 Empty execution tracking ID in InternalLogEntry (backport to release/2k) il y a 11 mois
LICENSE 7d020873d6 fix: #672 Empty execution tracking ID in InternalLogEntry (backport to release/2k) il y a 11 mois
README.md 7d020873d6 fix: #672 Empty execution tracking ID in InternalLogEntry (backport to release/2k) il y a 11 mois
package.json 7d020873d6 fix: #672 Empty execution tracking ID in InternalLogEntry (backport to release/2k) il y a 11 mois

README.md

@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.