blessed

A curses-like library for node.js.

View on GitHub

Element (from Node)

The base element.

Options:
Properties:
Events:
Methods:
Content Methods

Methods for dealing with text content, line by line. Useful for writing a text editor, irc client, etc.

Note: All of these methods deal with pre-aligned, pre-wrapped text. If you use deleteTop() on a box with a wrapped line at the top, it may remove 3-4 “real” lines (rows) depending on how long the original line was.

The lines parameter can be a string or an array of strings. The line parameter must be a string.