Support enableBold option

This commit is contained in:
Daniel Imms
2017-10-13 13:13:38 -07:00
parent c1ec68091a
commit a622b97a94
3 changed files with 18 additions and 3 deletions
+2
View File
@@ -77,6 +77,7 @@ const DEFAULT_OPTIONS: ITerminalOptions = {
cursorStyle: 'block',
bellSound: BellSound,
bellStyle: 'none',
enableBold: true,
fontFamily: 'courier-new, courier, monospace',
fontSize: 15,
lineHeight: 1.0,
@@ -410,6 +411,7 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
this.renderer.clear();
this.charMeasure.measure(this.options);
break;
case 'enableBold':
case 'lineHeight':
// When the font changes the size of the cells may change which requires a renderer clear
this.renderer.clear();