bumped xterm, check bracketedPaste state via terminal modes

This commit is contained in:
Eugene Pankov
2021-09-09 23:07:18 +02:00
parent d6fa3b02a9
commit a87d8871ad
6 changed files with 33 additions and 35 deletions

View File

@@ -76,4 +76,6 @@ export abstract class Frontend {
abstract saveState (): any
abstract restoreState (state: string): void
abstract supportsBracketedPaste (): boolean
}

View File

@@ -324,6 +324,10 @@ export class XTermFrontend extends Frontend {
this.xterm.write(state)
}
supportsBracketedPaste (): boolean {
return this.xterm.modes.bracketedPasteMode
}
private setFontSize () {
const scale = Math.pow(1.1, this.zoom)
this.xterm.setOption('fontSize', this.configuredFontSize * scale)