From 85df66dcd6363d232975ac5abaf3c30b8383840f Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Tue, 30 May 2017 14:30:11 -0700 Subject: [PATCH 1/2] Style the terminal press any key text Fixes #27398 --- .../parts/terminal/electron-browser/terminalInstance.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vs/workbench/parts/terminal/electron-browser/terminalInstance.ts b/src/vs/workbench/parts/terminal/electron-browser/terminalInstance.ts index 3b320363826..b236832add4 100644 --- a/src/vs/workbench/parts/terminal/electron-browser/terminalInstance.ts +++ b/src/vs/workbench/parts/terminal/electron-browser/terminalInstance.ts @@ -532,6 +532,8 @@ export class TerminalInstance implements ITerminalInstance { let message = typeof this._shellLaunchConfig.waitOnExit === 'string' ? this._shellLaunchConfig.waitOnExit : nls.localize('terminal.integrated.waitOnExit', 'Press any key to close the terminal'); + // Style the message to make it stand out from the rest of the output + message = `\n\x1b[40;37;1m${message}\x1b[0m`; this._xterm.writeln(message); // Disable all input if the terminal is exiting and listen for next keypress this._xterm.setOption('disableStdin', true); From 8d9f0f561fb975d94fd9e3f2a460c5e7f7baa1e4 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Wed, 31 May 2017 10:36:08 -0700 Subject: [PATCH 2/2] Only bold press any key text --- .../parts/terminal/electron-browser/terminalInstance.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/parts/terminal/electron-browser/terminalInstance.ts b/src/vs/workbench/parts/terminal/electron-browser/terminalInstance.ts index b236832add4..bb4237e7aad 100644 --- a/src/vs/workbench/parts/terminal/electron-browser/terminalInstance.ts +++ b/src/vs/workbench/parts/terminal/electron-browser/terminalInstance.ts @@ -532,8 +532,8 @@ export class TerminalInstance implements ITerminalInstance { let message = typeof this._shellLaunchConfig.waitOnExit === 'string' ? this._shellLaunchConfig.waitOnExit : nls.localize('terminal.integrated.waitOnExit', 'Press any key to close the terminal'); - // Style the message to make it stand out from the rest of the output - message = `\n\x1b[40;37;1m${message}\x1b[0m`; + // Bold the message and add an extra new line to make it stand out from the rest of the output + message = `\n\x1b[1m${message}\x1b[0m`; this._xterm.writeln(message); // Disable all input if the terminal is exiting and listen for next keypress this._xterm.setOption('disableStdin', true);