2013-07-14 13:48:17 +00:00
|
|
|
var blessed = require('../')
|
|
|
|
, screen = blessed.screen();
|
|
|
|
|
|
|
|
blessed.box({
|
|
|
|
parent: screen,
|
|
|
|
border: {
|
|
|
|
type: 'ascii',
|
|
|
|
},
|
|
|
|
bg: 'red',
|
|
|
|
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();
|