diff --git a/core/lib/cc/cmd.go b/core/lib/cc/cmd.go index e9658dda3..159a75445 100644 --- a/core/lib/cc/cmd.go +++ b/core/lib/cc/cmd.go @@ -223,16 +223,20 @@ func setCurrentTarget(cmd string) { } // open a shell - CliPrintInfo("Opening Shell window") shell := "elvsh" - if os.Getenv("LD") == "true" { - shell = "bash" - } - err = SSHClient(shell, "", RuntimeConfig.SSHDPort, true) - if err != nil { - CliPrintError("SSHClient: %v", err) + if a.GOOS == "windows" { + CliPrintInfo("Please use `interactive_shell` module to open an shell") + } else { + if os.Getenv("LD") == "true" { + shell = "bash" + } + CliPrintInfo("Opening '%s' shell pane", shell) + err = SSHClient(shell, "", RuntimeConfig.SSHDPort, true) + if err != nil { + CliPrintError("SSHClient: %v", err) + } } - CliPrintInfo("Opening SFTP window") + CliPrintInfo("Opening SFTP pane") err = SSHClient("sftp", "", RuntimeConfig.SSHDPort, true) if err != nil { CliPrintError("SFTPClient: %v", err)