neo-blessed/test/widget-bigtext.js

34 lines
501 B
JavaScript
Raw Permalink Normal View History

2015-07-11 23:15:30 +00:00
var blessed = require('../')
, screen;
screen = blessed.screen({
dump: __dirname + '/logs/bigtext.log',
2015-07-22 02:23:57 +00:00
smartCSR: true,
warnings: true
2015-07-11 23:15:30 +00:00
});
var box = blessed.bigtext({
parent: screen,
content: 'Hello',
shrink: true,
width: '80%',
// height: '80%',
height: 'shrink',
// width: 'shrink',
border: 'line',
fch: ' ',
2015-08-06 01:52:31 +00:00
ch: '\u2592',
2015-07-11 23:15:30 +00:00
style: {
fg: 'red',
2015-08-06 01:52:31 +00:00
bg: 'blue',
2015-07-11 23:15:30 +00:00
bold: false
}
});
screen.key('q', function() {
return screen.destroy();
2015-07-11 23:15:30 +00:00
});
screen.render();