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

Support WSL for multi-line prompt clearing

上级 01005185
......@@ -567,7 +567,7 @@ export class TerminalInstance implements ITerminalInstance {
}
public clear(): void {
if (paths.basename(this._shellLaunchConfig.executable).match(/zsh|bash/)) {
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');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册