提交 47968153 编写于 作者: D Daniel Imms

Consider initialText when reusing terminal

Fixes #23102
上级 74a5dc99
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册