npm.io
1.0.11 • Published 5 years ago

terminal.js

Licence
MIT
Version
1.0.11
Deps
0
Size
1.2 MB
Vulns
0
Weekly
0
Stars
604

terminal.js: terminal emulator library for browsers and node.js

Build Status

Terminal.js is a rendering engine for vt100-like terminals. It is written from scratch and supports most commonly used escape sequences.

Example

a simple demo using the colors module:

var colors = require('colors'),
	Terminal = require('./index');

var terminal = new Terminal({columns: 20, rows: 2});

terminal.write("Terminal.js in rainbows".rainbow);

console.log(terminal.toString('ansi'));

There's also a webterminal using terminal.js: node-webterm

Documentation

The documentation is generated using JSDoc and can be found here

Source

Source is developed at Github

Keywords