Send cursor to the start of the line for waitOnExit terms

Fixes #71230
This commit is contained in:
Daniel Imms 2019-03-26 14:12:45 -07:00
parent addde0b36b
commit 673134ab35

View file

@ -954,7 +954,7 @@ export class TerminalInstance implements ITerminalInstance {
if (typeof this._shellLaunchConfig.waitOnExit === 'string') {
let message = this._shellLaunchConfig.waitOnExit;
// 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`;
message = `\r\n\x1b[1m${message}\x1b[0m`;
this._xterm.writeln(message);
}
// Disable all input if the terminal is exiting and listen for next keypress