2013-07-28 15:52:13 +00:00
|
|
|
var blessed = require('../')
|
|
|
|
, screen;
|
|
|
|
|
|
|
|
screen = blessed.screen({
|
2015-07-22 02:23:57 +00:00
|
|
|
dump: __dirname + '/logs/nested-attr.log',
|
|
|
|
warnings: true
|
2013-07-28 15:52:13 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
blessed.box({
|
|
|
|
parent: screen,
|
|
|
|
left: 'center',
|
|
|
|
top: 'center',
|
|
|
|
width: '80%',
|
|
|
|
height: '80%',
|
2015-04-04 06:43:24 +00:00
|
|
|
style: {
|
|
|
|
bg: 'black',
|
|
|
|
fg: 'yellow'
|
2013-07-28 15:52:13 +00:00
|
|
|
},
|
2015-04-04 06:43:24 +00:00
|
|
|
tags: true,
|
|
|
|
border: 'line',
|
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();
|