As you can see, pretty much everything is chainable.
Handy Rendering Shortcuts
The C object contains definitions for common colors so that you don't have
to remember the numeric values.
k: black
r: red
g: green
y: yellow
b: blue
m: magenta
c: cyan
w: white
x: the terminal's default color
The S object is similar: it contains the text style definitions -- normal,
bold, underline, blink, and inverse.
The SYM object contains shortcuts for some handy UTF8 characters: star, check
x, triUp, triDown, triLeft, triRight, fn, arrowUp, arrowDown, arrowLeft, and
arrowRight.
Events
resize is fired when the user resizes their terminal. The listener receives
an object with 'w' and 'h' properties set to the new width and height of the
terminal.
keypress is fired when a key is pressed. This works just like the keypress
event on process.stdin
mousedown, mouseup, drag, wheel are all the mouse events that are fired. The
receiver is sent an object that contains which button was pressed, which direction
the wheel scrolled, the x/y location, and whether or not shift was pressed.
Widgets
Button
Buttons are simply clickable rectangular areas that can have a label on them.
Here's how to use one...