2015-04-02 14:24:25 +00:00
|
|
|
var blessed = require('../')
|
|
|
|
, screen;
|
|
|
|
|
|
|
|
screen = blessed.screen({
|
|
|
|
dump: __dirname + '/logs/autopad.log',
|
|
|
|
smartCSR: true,
|
2015-07-22 02:23:57 +00:00
|
|
|
autoPadding: true,
|
|
|
|
warnings: true
|
2015-04-02 14:24:25 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
var box1 = blessed.box({
|
|
|
|
parent: screen,
|
|
|
|
top: 'center',
|
|
|
|
left: 'center',
|
|
|
|
width: 20,
|
|
|
|
height: 10,
|
|
|
|
border: 'line'
|
|
|
|
});
|
|
|
|
|
|
|
|
var box2 = blessed.box({
|
|
|
|
parent: box1,
|
|
|
|
top: 0,
|
|
|
|
left: 0,
|
|
|
|
width: 10,
|
|
|
|
height: 5,
|
|
|
|
border: 'line'
|
|
|
|
});
|
|
|
|
|
|
|
|
screen.key('q', function() {
|
2015-08-08 04:00:31 +00:00
|
|
|
return screen.destroy();
|
2015-04-02 14:24:25 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
screen.render();
|