mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-26 10:16:01 +01:00
Merge pull request #27647 from Microsoft/tyriar/27398
Style the terminal press any key text
This commit is contained in:
@@ -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');
|
||||
// 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);
|
||||
|
||||
Reference in New Issue
Block a user