2013-07-28 15:52:13 +00:00
|
|
|
var blessed = require('../')
|
|
|
|
, screen;
|
|
|
|
|
|
|
|
screen = blessed.screen({
|
2013-07-28 19:29:07 +00:00
|
|
|
dump: __dirname + '/logs/nested-attr.log'
|
2013-07-28 15:52:13 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
blessed.box({
|
|
|
|
parent: screen,
|
|
|
|
left: 'center',
|
|
|
|
top: 'center',
|
|
|
|
width: '80%',
|
|
|
|
height: '80%',
|
|
|
|
bg: 'black',
|
|
|
|
fg: 'yellow',
|
|
|
|
tags: true,
|
|
|
|
border: {
|
|
|
|
type: 'ascii'
|
|
|
|
},
|
2013-07-28 19:29:07 +00:00
|
|
|
content: '{red-fg}hello {blue-fg}how{/blue-fg}'
|
|
|
|
+ ' {yellow-bg}are{/yellow-bg} you?{/red-fg}'
|
2013-07-28 15:52:13 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
screen.key('q', function() {
|
|
|
|
return process.exit(0);
|
|
|
|
});
|
|
|
|
|
|
|
|
screen.render();
|