1.0.3 • Published 2 years ago
xterm-shell v1.0.3
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