Add shell command support

This commit is contained in:
Zachary Yedidia
2019-01-10 16:37:05 -05:00
parent 103527f38f
commit 16038c388e
9 changed files with 186 additions and 36 deletions

View File

@@ -16,7 +16,7 @@ import (
// This will write the message, and wait for the user
// to press and key to continue
func TermMessage(msg ...interface{}) {
screen.TempFini()
screenb := screen.TempFini()
fmt.Println(msg...)
fmt.Print("\nPress enter to continue")
@@ -24,7 +24,7 @@ func TermMessage(msg ...interface{}) {
reader := bufio.NewReader(os.Stdin)
reader.ReadString('\n')
screen.TempStart()
screen.TempStart(screenb)
}
// TermError sends an error to the user in the terminal. Like TermMessage except formatted