Skip to content

Commit

Permalink
Support WSL for multi-line prompt clearing
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Apr 18, 2018
1 parent 0100518 commit a443a44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit a443a44

Please sign in to comment.