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() {
|
2015-08-08 04:00:31 +00:00
|
|
|
return screen.destroy();
|
2015-07-11 23:15:30 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
screen.render();
|
|
|
|
|