2013-07-14 13:48:17 +00:00
|
|
|
var blessed = require('../')
|
2013-07-28 19:29:07 +00:00
|
|
|
, screen;
|
|
|
|
|
|
|
|
screen = blessed.screen({
|
|
|
|
dump: __dirname + '/logs/padding.log'
|
|
|
|
});
|
2013-07-14 13:48:17 +00:00
|
|
|
|
|
|
|
blessed.box({
|
|
|
|
parent: screen,
|
2015-04-04 06:43:24 +00:00
|
|
|
border: 'line',
|
|
|
|
style: {
|
|
|
|
bg: 'red',
|
2013-07-14 13:48:17 +00:00
|
|
|
},
|
|
|
|
content: 'hello world\nhi',
|
|
|
|
align: 'center',
|
|
|
|
left: 'center',
|
|
|
|
top: 'center',
|
2013-07-17 01:07:00 +00:00
|
|
|
width: 22,
|
|
|
|
height: 10,
|
|
|
|
padding: 2
|
2013-07-14 13:48:17 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
screen.key('q', function() {
|
|
|
|
return process.exit(0);
|
|
|
|
});
|
|
|
|
|
|
|
|
screen.render();
|