vellum

A small terminal emulation package; based on and inspired by munificent/malison


Keywords
js
License
Apache-2.0
Install
haxelib install vellum 1.0.0

Documentation

vellum

GitHub license GitHub issues Code Climate Travis

A small terminal emulation package; heavily based on, borrowed from, and inspired by munificent/malison.

Examples

Writing directly to the terminal

var term:CanvasTerminal = new CanvasTerminal(80, 25, vellum.Font.Menlo());
term.print(0, 0, 'Hello world!');
term.render();

Using Windows To Organize Things

var term:CanvasTerminal = new CanvasTerminal(80, 25, vellum.Font.Menlo());
var window:Window = term.pushWindow(5, 5, 20, 1);
print(0, 0, 'I\'m in a window!');
term.render();

Using Colours Via Escape Codes

var term:CanvasTerminal = new CanvasTerminal(80, 25, vellum.Font.Menlo());
term.printColoured(1, 1, '@r#deH@oe@yl@gl@lbo@_#_ #q@kworld@_#_!');
term.render();

Live Sample

A live sample is available to show it in action.