expose the drawBoldTextInBrightColors option - fixes #3149

This commit is contained in:
Eugene Pankov 2022-04-15 18:55:00 +02:00
parent 4a33936e7d
commit eaf4ed9855
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
3 changed files with 12 additions and 0 deletions

View File

@ -23,6 +23,14 @@ div
(ngModelChange)='config.save()',
)
.form-line
.header
.title(translate) Draw bold text in bright colors
toggle(
[(ngModel)]='config.store.terminal.drawBoldTextInBrightColors',
(ngModelChange)='config.save()'
)
div.mt-4
h3(translate) Keyboard

View File

@ -67,6 +67,7 @@ export class TerminalConfigProvider extends ConfigProvider {
},
detectProgress: true,
scrollbackLines: 25000,
drawBoldTextInBrightColors: true,
},
}

View File

@ -292,6 +292,9 @@ export class XTermFrontend extends Frontend {
this.xterm.options.macOptionIsMeta = config.terminal.altIsMeta
this.xterm.options.scrollback = config.terminal.scrollbackLines
this.xterm.options.wordSeparator = config.terminal.wordSeparator
this.xterm.options.drawBoldTextInBrightColors = config.terminal.drawBoldTextInBrightColors
this.xterm.options.fontWeight = config.terminal.fontWeight
this.xterm.options.fontWeightBold = config.terminal.fontWeightBold
this.configuredFontSize = config.terminal.fontSize
this.configuredLinePadding = config.terminal.linePadding
this.setFontSize()