提交 0b5ff1f4 编写于 作者: D Daniel Imms

Go back to old terminal clear behavior

Fixes #49162
上级 f86fdaf7
......@@ -574,13 +574,7 @@ export class TerminalInstance implements ITerminalInstance {
}
public clear(): void {
if (this._shellLaunchConfig.executable && paths.basename(this._shellLaunchConfig.executable).match(/^(zsh|bash|bash\.exe)$/)) {
// If a supported shell is being used, clear xterm scrollback then clear shell (^L)
this._xterm.write('\x1b[3J');
this._processManager.write('\x0c');
} else {
this._xterm.clear();
}
this._xterm.clear();
}
private _refreshSelectionContextKey() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册