fix bigtext. whitespace.

This commit is contained in:
Christopher Jeffrey 2015-08-05 18:52:31 -07:00
parent 41a354c571
commit 72586faef9
3 changed files with 5 additions and 2 deletions

View File

@ -2251,6 +2251,7 @@ above.
For a working example of a blessed telnet server, see
`examples/blessed-telnet.js`.
### Notes

View File

@ -141,10 +141,10 @@ BigText.prototype.render = function() {
if (mcell == null) break;
if (this.fch && this.fch !== ' ') {
lines[y][x + mx][0] = dattr;
lines[y][x + mx][1] = mcell === 1 ? this.fch : ' ';
lines[y][x + mx][1] = mcell === 1 ? this.fch : this.ch;
} else {
lines[y][x + mx][0] = mcell === 1 ? attr : dattr;
lines[y][x + mx][1] = ' ';
lines[y][x + mx][1] = mcell === 1 ? ' ' : this.ch;
}
}
lines[y].dirty = true;

View File

@ -17,8 +17,10 @@ var box = blessed.bigtext({
// width: 'shrink',
border: 'line',
fch: ' ',
ch: '\u2592',
style: {
fg: 'red',
bg: 'blue',
bold: false
}
});