neo-blessed/test/widget-nested-attr.js

30 lines
499 B
JavaScript
Raw Normal View History

var blessed = require('../')
, screen;
screen = blessed.screen({
2015-07-22 02:23:57 +00:00
dump: __dirname + '/logs/nested-attr.log',
warnings: true
});
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'
},
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}'
});
screen.key('q', function() {
return process.exit(0);
});
screen.render();