Merge pull request #1052 from Tyriar/1047_ansi_bright
Fix ansi bright text being bold without bold flag
This commit is contained in:
@@ -235,7 +235,10 @@ export abstract class BaseRenderLayer implements IRenderLayer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const isAscii = code < 256;
|
const isAscii = code < 256;
|
||||||
const isBasicColor = (colorIndex > 1 && fg < 16);
|
// A color is basic if it is one of the standard normal or bold weight
|
||||||
|
// colors of the characters held in the char atlas. Note that this excludes
|
||||||
|
// the normal weight light color characters
|
||||||
|
const isBasicColor = (colorIndex > 1 && fg < 16) && (fg < 8 || bold);
|
||||||
const isDefaultColor = fg >= 256;
|
const isDefaultColor = fg >= 256;
|
||||||
const isDefaultBackground = bg >= 256;
|
const isDefaultBackground = bg >= 256;
|
||||||
if (this._charAtlas && isAscii && (isBasicColor || isDefaultColor) && isDefaultBackground) {
|
if (this._charAtlas && isAscii && (isBasicColor || isDefaultColor) && isDefaultBackground) {
|
||||||
|
|||||||
Reference in New Issue
Block a user