From 47968153bb3f4ce956390d97623c1975b5eaa876 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Thu, 23 Mar 2017 15:41:32 -0700 Subject: [PATCH] Consider initialText when reusing terminal Fixes #23102 --- .../parts/terminal/electron-browser/terminalInstance.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/vs/workbench/parts/terminal/electron-browser/terminalInstance.ts b/src/vs/workbench/parts/terminal/electron-browser/terminalInstance.ts index 5259b9cf2d5..c4084ae4fbe 100644 --- a/src/vs/workbench/parts/terminal/electron-browser/terminalInstance.ts +++ b/src/vs/workbench/parts/terminal/electron-browser/terminalInstance.ts @@ -565,6 +565,11 @@ export class TerminalInstance implements ITerminalInstance { // Ensure new processes' output starts at start of new line this._xterm.write('\n\x1b[G'); + // Print initialText if specified + if (shell.initialText) { + this._xterm.writeln(shell.initialText); + } + // Initialize new process const oldTitle = this._title; this._createProcess(this._contextService.getWorkspace(), shell); -- GitLab