Skip to content

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

License

Notifications You must be signed in to change notification settings

hamaluik/vellum

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages