2013-07-18 22:56:05 +00:00
|
|
|
var blessed = require('../');
|
2013-07-04 05:10:01 +00:00
|
|
|
|
2013-07-18 22:56:05 +00:00
|
|
|
var screen = blessed.screen();
|
2013-07-04 05:10:01 +00:00
|
|
|
|
|
|
|
var box = blessed.textarea({
|
|
|
|
parent: screen,
|
|
|
|
// Possibly support:
|
|
|
|
// align: 'center',
|
|
|
|
bg: 'blue',
|
|
|
|
height: 'half',
|
|
|
|
width: 'half',
|
|
|
|
top: 'center',
|
|
|
|
left: 'center'
|
|
|
|
});
|
|
|
|
|
|
|
|
screen.render();
|
|
|
|
|
|
|
|
screen.key('q', function() {
|
|
|
|
process.exit(0);
|
|
|
|
});
|
|
|
|
|
|
|
|
screen.key('i', function() {
|
|
|
|
box.readInput(function() {});
|
|
|
|
});
|
|
|
|
|
|
|
|
screen.key('e', function() {
|
|
|
|
box.readEditor(function() {});
|
|
|
|
});
|