Merge pull request #1485 from LevitatingBusinessMan/terminal_impr

Terminal improvements
This commit is contained in:
Zachary Yedidia 2020-02-07 19:12:05 -05:00 committed by GitHub
commit e73549c61a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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()