Fix for issue 2 in #1484

Exit message when exiting terminal now isnt visibile in other views
This commit is contained in:
Rein F 2020-02-08 00:15:37 +01:00
parent 106ba48079
commit e759d4087b

View file

@ -2,8 +2,6 @@ package shell
import (
"bytes"
"fmt"
"os"
"os/exec"
"strconv"
"strings"
@ -115,7 +113,8 @@ func (t *Terminal) Start(execCmd []string, getOutput bool, wait bool, callback s
for {
err := Term.Parse()
if err != nil {
fmt.Fprintln(os.Stderr, "[Press enter to close]")
Term.Write([]byte("Press enter to close"))
screen.Redraw()
break
}
screen.Redraw()