+12
-6
@@ -449,8 +449,10 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
|
|||||||
case 'fontFamily':
|
case 'fontFamily':
|
||||||
case 'fontSize':
|
case 'fontSize':
|
||||||
// When the font changes the size of the cells may change which requires a renderer clear
|
// When the font changes the size of the cells may change which requires a renderer clear
|
||||||
this.renderer.clear();
|
if (this.renderer) {
|
||||||
this.charMeasure.measure(this.options);
|
this.renderer.clear();
|
||||||
|
this.charMeasure.measure(this.options);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 'enableBold':
|
case 'enableBold':
|
||||||
case 'letterSpacing':
|
case 'letterSpacing':
|
||||||
@@ -458,12 +460,16 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
|
|||||||
case 'fontWeight':
|
case 'fontWeight':
|
||||||
case 'fontWeightBold':
|
case 'fontWeightBold':
|
||||||
// When the font changes the size of the cells may change which requires a renderer clear
|
// When the font changes the size of the cells may change which requires a renderer clear
|
||||||
this.renderer.clear();
|
if (this.renderer) {
|
||||||
this.renderer.onResize(this.cols, this.rows);
|
this.renderer.clear();
|
||||||
this.refresh(0, this.rows - 1);
|
this.renderer.onResize(this.cols, this.rows);
|
||||||
|
this.refresh(0, this.rows - 1);
|
||||||
|
}
|
||||||
case 'scrollback':
|
case 'scrollback':
|
||||||
this.buffers.resize(this.cols, this.rows);
|
this.buffers.resize(this.cols, this.rows);
|
||||||
this.viewport.syncScrollArea();
|
if (this.viewport) {
|
||||||
|
this.viewport.syncScrollArea();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 'screenReaderMode':
|
case 'screenReaderMode':
|
||||||
if (value) {
|
if (value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user