How to use the xterm.Terminal.loadAddon function in xterm

To help you get started, weโ€™ve selected a few xterm examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github xtermjs / xterm.js / fixtures / typings-test / typing-tests.ts View on Github external
namespace properties {
  {
    const t: Terminal = new Terminal();
    const element: HTMLElement = t.element;
    const textarea: HTMLTextAreaElement = t.textarea;
  }
}

namespace static_methods {
  {
    Terminal.loadAddon('attach');
    Terminal.loadAddon('fit');
    Terminal.loadAddon('fullscreen');
    Terminal.loadAddon('search');
    Terminal.loadAddon('terminado');
  }
}

namespace methods_core {
  {
    const t: Terminal = new Terminal();
    t.blur();
    t.focus();
    t.destroy();
    t.clear();
    t.refresh(0, 1);
    t.reset();
    t.resize(1, 1);
    t.write('foo');
    t.writeln('foo');
  }
github xtermjs / xterm.js / fixtures / typings-test / typing-tests.ts View on Github external
}
}

namespace properties {
  {
    const t: Terminal = new Terminal();
    const element: HTMLElement = t.element;
    const textarea: HTMLTextAreaElement = t.textarea;
  }
}

namespace static_methods {
  {
    Terminal.loadAddon('attach');
    Terminal.loadAddon('fit');
    Terminal.loadAddon('fullscreen');
    Terminal.loadAddon('search');
    Terminal.loadAddon('terminado');
  }
}

namespace methods_core {
  {
    const t: Terminal = new Terminal();
    t.blur();
    t.focus();
    t.destroy();
    t.clear();
    t.refresh(0, 1);
    t.reset();
    t.resize(1, 1);
    t.write('foo');
github xtermjs / xterm.js / fixtures / typings-test / typing-tests.ts View on Github external
}

namespace properties {
  {
    const t: Terminal = new Terminal();
    const element: HTMLElement = t.element;
    const textarea: HTMLTextAreaElement = t.textarea;
  }
}

namespace static_methods {
  {
    Terminal.loadAddon('attach');
    Terminal.loadAddon('fit');
    Terminal.loadAddon('fullscreen');
    Terminal.loadAddon('search');
    Terminal.loadAddon('terminado');
  }
}

namespace methods_core {
  {
    const t: Terminal = new Terminal();
    t.blur();
    t.focus();
    t.destroy();
    t.clear();
    t.refresh(0, 1);
    t.reset();
    t.resize(1, 1);
    t.write('foo');
    t.writeln('foo');
github xtermjs / xterm.js / fixtures / typings-test / typing-tests.ts View on Github external
});
  }
}

namespace properties {
  {
    const t: Terminal = new Terminal();
    const element: HTMLElement = t.element;
    const textarea: HTMLTextAreaElement = t.textarea;
  }
}

namespace static_methods {
  {
    Terminal.loadAddon('attach');
    Terminal.loadAddon('fit');
    Terminal.loadAddon('fullscreen');
    Terminal.loadAddon('search');
    Terminal.loadAddon('terminado');
  }
}

namespace methods_core {
  {
    const t: Terminal = new Terminal();
    t.blur();
    t.focus();
    t.destroy();
    t.clear();
    t.refresh(0, 1);
    t.reset();
    t.resize(1, 1);
github xtermjs / xterm.js / fixtures / typings-test / typing-tests.ts View on Github external
'tabStopWidth': 2,
    });
  }
}

namespace properties {
  {
    const t: Terminal = new Terminal();
    const element: HTMLElement = t.element;
    const textarea: HTMLTextAreaElement = t.textarea;
  }
}

namespace static_methods {
  {
    Terminal.loadAddon('attach');
    Terminal.loadAddon('fit');
    Terminal.loadAddon('fullscreen');
    Terminal.loadAddon('search');
    Terminal.loadAddon('terminado');
  }
}

namespace methods_core {
  {
    const t: Terminal = new Terminal();
    t.blur();
    t.focus();
    t.destroy();
    t.clear();
    t.refresh(0, 1);
    t.reset();