vellum 1.0.0

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

Released 2016-05-18.

To install, run:

haxelib install vellum 1.0.0

See using Haxelib in Haxelib documentation for more information.

MaintainerFuzzyWuzzie
Websitehttps://github.com/FuzzyWuzzie/vellum
Current version1.0.0
StatisticsInstalled 11 times
LicenseApache
Tags js

README.md

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.