mirror of
https://github.com/chjj/blessed.git
synced 2026-02-06 11:42:01 +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
|
For a working example of a blessed telnet server, see
|
||||||
`examples/blessed-telnet.js`.
|
`examples/blessed-telnet.js`.
|
||||||
|
|
||||||
|
|
||||||
### Notes
|
### Notes
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -141,10 +141,10 @@ BigText.prototype.render = function() {
|
|||||||
if (mcell == null) break;
|
if (mcell == null) break;
|
||||||
if (this.fch && this.fch !== ' ') {
|
if (this.fch && this.fch !== ' ') {
|
||||||
lines[y][x + mx][0] = dattr;
|
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 {
|
} else {
|
||||||
lines[y][x + mx][0] = mcell === 1 ? attr : dattr;
|
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;
|
lines[y].dirty = true;
|
||||||
|
|||||||
@ -17,8 +17,10 @@ var box = blessed.bigtext({
|
|||||||
// width: 'shrink',
|
// width: 'shrink',
|
||||||
border: 'line',
|
border: 'line',
|
||||||
fch: ' ',
|
fch: ' ',
|
||||||
|
ch: '\u2592',
|
||||||
style: {
|
style: {
|
||||||
fg: 'red',
|
fg: 'red',
|
||||||
|
bg: 'blue',
|
||||||
bold: false
|
bold: false
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user