apply bright shift for uncached draws
This commit is contained in:
@@ -325,7 +325,11 @@ export abstract class BaseRenderLayer implements IRenderLayer {
|
|||||||
} else if (cell.isFgRGB()) {
|
} else if (cell.isFgRGB()) {
|
||||||
this._ctx.fillStyle = `rgb(${AttributeData.toColorRGB(cell.getFgColor()).join(',')})`;
|
this._ctx.fillStyle = `rgb(${AttributeData.toColorRGB(cell.getFgColor()).join(',')})`;
|
||||||
} else if (cell.isFgPalette()) {
|
} else if (cell.isFgPalette()) {
|
||||||
this._ctx.fillStyle = this._colors.ansi[cell.getFgColor()].css;
|
let fg = cell.getFgColor();
|
||||||
|
if (terminal.options.drawBoldTextInBrightColors && cell.isBold() && fg < 8) {
|
||||||
|
fg += 8;
|
||||||
|
}
|
||||||
|
this._ctx.fillStyle = this._colors.ansi[fg].css;
|
||||||
}
|
}
|
||||||
|
|
||||||
this._clipRow(terminal, y);
|
this._clipRow(terminal, y);
|
||||||
|
|||||||
Reference in New Issue
Block a user