mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-17 01:50:05 +00:00
xterm 3.14 fixes
This commit is contained in:
parent
cc6443bb6c
commit
2b2453a397
@ -144,9 +144,13 @@ export class XTermFrontend extends Frontend {
|
|||||||
let config = this.configService.store
|
let config = this.configService.store
|
||||||
|
|
||||||
setImmediate(() => {
|
setImmediate(() => {
|
||||||
if (this.xterm.cols && this.xterm.rows) {
|
if (this.xterm.cols && this.xterm.rows && this.xtermCore.charMeasure) {
|
||||||
|
if (this.xtermCore.charMeasure) {
|
||||||
this.xtermCore.charMeasure.measure(this.xtermCore.options)
|
this.xtermCore.charMeasure.measure(this.xtermCore.options)
|
||||||
|
}
|
||||||
|
if (this.xtermCore.renderer) {
|
||||||
this.xtermCore.renderer._updateDimensions()
|
this.xtermCore.renderer._updateDimensions()
|
||||||
|
}
|
||||||
this.resizeHandler()
|
this.resizeHandler()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -179,7 +183,7 @@ export class XTermFrontend extends Frontend {
|
|||||||
theme[colorNames[i]] = config.terminal.colorScheme.colors[i]
|
theme[colorNames[i]] = config.terminal.colorScheme.colors[i]
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!deepEqual(this.configuredTheme, theme)) {
|
if (this.xtermCore._colorManager && !deepEqual(this.configuredTheme, theme)) {
|
||||||
this.xterm.setOption('theme', theme)
|
this.xterm.setOption('theme', theme)
|
||||||
this.configuredTheme = theme
|
this.configuredTheme = theme
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user