Add drawBoldTextInBrightColors to DEFAULT_OPTIONS

This lets term.setOption() work for drawBoldTextInBrightColors.
This commit is contained in:
Benjamin Woodruff
2018-05-08 18:34:23 -07:00
parent ce6139e604
commit 9893338020
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -103,6 +103,7 @@ const DEFAULT_OPTIONS: ITerminalOptions = {
cursorStyle: 'block',
bellSound: DEFAULT_BELL_SOUND,
bellStyle: 'none',
drawBoldTextInBrightColors: true,
enableBold: true,
fontFamily: 'courier-new, courier, monospace',
fontSize: 15,
+1 -1
View File
@@ -248,7 +248,7 @@ export abstract class BaseRenderLayer implements IRenderLayer {
const isBasicColor = fg < 16;
const isDefaultColor = fg >= 256;
const isDefaultBackground = bg >= 256;
const drawInBrightColor = (terminal.options.drawBoldTextInBrightColors !== false && bold && fg < 8);
const drawInBrightColor = (terminal.options.drawBoldTextInBrightColors && bold && fg < 8);
if (this._charAtlas && isAscii && (isBasicColor || isDefaultColor) && isDefaultBackground && !italic) {
let colorIndex: number;
if (isDefaultColor) {