neo-blessed/test/widget-valign.js

29 lines
460 B
JavaScript
Raw Normal View History

2015-04-02 12:09:20 +00:00
var blessed = require('../')
, screen;
screen = blessed.screen({
dump: __dirname + '/logs/valign.log',
smartCSR: true,
2015-07-22 02:23:57 +00:00
autoPadding: false,
warnings: true
2015-04-02 12:09:20 +00:00
});
var box = blessed.box({
parent: screen,
top: 'center',
left: 'center',
width: '50%',
height: 5,
align: 'center',
valign: 'middle',
// valign: 'bottom',
content: 'Foobar.',
border: 'line'
});
screen.key('q', function() {
return screen.destroy();
2015-04-02 12:09:20 +00:00
});
screen.render();