Skip to content

Commit

Permalink
Merge pull request #22465 from lifez/terminal-enable-bold
Browse files Browse the repository at this point in the history
Provide "terminal.integrated.enableBold" setting connected to #22422
  • Loading branch information
Tyriar committed Mar 20, 2017
2 parents 938f399 + 6b758b5 commit 8dc5a60
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/vs/workbench/parts/terminal/common/terminal.ts
Expand Up @@ -46,6 +46,7 @@ export interface ITerminalConfiguration {
osx: string[];
windows: string[];
};
enableBold: boolean;
rightClickCopyPaste: boolean;
cursorBlinking: boolean;
cursorStyle: string;
Expand Down
Expand Up @@ -58,6 +58,11 @@
font-variant-ligatures: normal;
}


.monaco-workbench .panel.integrated-terminal.disable-bold .xterm-bold {
font-weight: normal !important;
}

/* Terminal actions */

/* Light theme */
Expand Down
Expand Up @@ -106,6 +106,11 @@ configurationRegistry.registerConfiguration({
'type': 'number',
'default': 1.2
},
'terminal.integrated.enableBold': {
'type': 'boolean',
'description': nls.localize('terminal.integrated.enableBold', "Whether to enable bold text within the terminal."),
'default': true
},
'terminal.integrated.cursorBlinking': {
'description': nls.localize('terminal.integrated.cursorBlinking', "Controls whether the terminal cursor blinks."),
'type': 'boolean',
Expand Down
Expand Up @@ -230,6 +230,7 @@ export class TerminalPanel extends Panel {
}
let newFont = this._terminalService.configHelper.getFont();
DOM.toggleClass(this._parentDomElement, 'enable-ligatures', this._terminalService.configHelper.config.fontLigatures);
DOM.toggleClass(this._parentDomElement, 'disable-bold', !this._terminalService.configHelper.config.enableBold);
if (!this._font || this._fontsDiffer(this._font, newFont)) {
this._fontStyleElement.innerHTML = '.monaco-workbench .panel.integrated-terminal .xterm {' +
`font-family: ${newFont.fontFamily};` +
Expand Down

0 comments on commit 8dc5a60

Please sign in to comment.