Texty provides text input widgets (textarea
, textbox
) that are navigable via the cursor keys.
The blessed library left navigable text input widgets as a feature for future development. Texty provides minimal drop-in replacements with no additional dependencies.
npm install blessed blessed-texty
var blessed = require('blessed');
, texty = require('blessed-texty');
, screen = blessed.screen();
, textyarea = texty.textarea(
{ style:
{ bg: "blue"
, fg: "white" }
);
screen.append(textyarea);
screen.key(['escape', 'q', 'C-c'], function(ch, key) {
return process.exit(0);
});
screen.render();
This library is licensed under the MIT License.