diff --git a/src/vs/workbench/parts/terminal/electron-browser/terminalInstance.ts b/src/vs/workbench/parts/terminal/electron-browser/terminalInstance.ts index 5259b9cf2d5a20730d4af9205cb6a5227ab8631c..c4084ae4fbe528040fa88d830326d0715f23fa90 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);