mirror of
https://github.com/chjj/blessed.git
synced 2026-02-06 11:56:54 +00:00
fix bigtext. whitespace.
This commit is contained in:
parent
41a354c571
commit
72586faef9
@ -2251,6 +2251,7 @@ above.
|
||||
For a working example of a blessed telnet server, see
|
||||
`examples/blessed-telnet.js`.
|
||||
|
||||
|
||||
### Notes
|
||||
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -17,8 +17,10 @@ var box = blessed.bigtext({
|
||||
// width: 'shrink',
|
||||
border: 'line',
|
||||
fch: ' ',
|
||||
ch: '\u2592',
|
||||
style: {
|
||||
fg: 'red',
|
||||
bg: 'blue',
|
||||
bold: false
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user