We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 937f208 + 79c1698 commit 17f45acCopy full SHA for 17f45ac
menus.go
@@ -384,12 +384,17 @@ func ExecShell() MenuFn {
384
// 4. Execute the shell path with eval
385
shell := []string{"/bin/sh", "-c", "printf '\\e[0m\\e[?25h' && clear && eval `grep ^$(id -un): /etc/passwd | cut -d : -f 7-`"}
386
if runtime.GOOS == "windows" {
387
- shell = []string{"cmd.exe"}
+ shell = []string{"cmd.exe", "/c", "cls && cmd.exe"}
388
}
389
if err := c.Exec(shell); err != nil {
390
log.StatusErr(err)
391
392
393
+ if runtime.GOOS == "windows" {
394
+ if err := RefreshDisplay(); err != nil {
395
+ log.StatusErr(err)
396
+ }
397
398
return nil
399
400
0 commit comments