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

1.0.3 • Public • Published

Xterm.js Shell

A simple shell intended to be used with xterm.js. Based heavily on xterm-js-shell. Built to be used with osrs-cli.

This repo isn't my finest work, I just hacked it together to get the CLI working.

Example Usage

import { XtermShell } from "xterm-shell";

const shell = new XtermShell(terminal);
shell.setPrompt("> ").addGlobalCommandHandler(async (shell, command, args) => {
  shell.printLine(`command: ${command}; args: ${args.toString()}`);
});
shell.repl();

Publishing

npm run build
npm publish

Package Sidebar

Install

npm i xterm-shell

Weekly Downloads

5

Version

1.0.3

License

MIT

Unpacked Size

13.3 kB

Total Files

5

Last publish

Collaborators

  • lucaspickering