29 lines
479 B
JavaScript
29 lines
479 B
JavaScript
var blessed = require('../')
|
|
, screen;
|
|
|
|
screen = blessed.screen({
|
|
dump: __dirname + '/logs/nested-attr.log'
|
|
});
|
|
|
|
blessed.box({
|
|
parent: screen,
|
|
left: 'center',
|
|
top: 'center',
|
|
width: '80%',
|
|
height: '80%',
|
|
bg: 'black',
|
|
fg: 'yellow',
|
|
tags: true,
|
|
border: {
|
|
type: 'ascii'
|
|
},
|
|
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();
|