1.0.3 • Published 2 years ago

xterm-shell v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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
1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago