9 "github.com/zyedidia/micro/cmd/micro/screen"
12 // TermMessage sends a message to the user in the terminal. This usually occurs before
13 // micro has been fully initialized -- ie if there is an error in the syntax highlighting
14 // regular expressions
15 // The function must be called when the Screen is not initialized
16 // This will write the message, and wait for the user
17 // to press and key to continue
18 func TermMessage(msg ...interface{}) {
22 fmt.Print("\nPress enter to continue")
24 reader := bufio.NewReader(os.Stdin)
25 reader.ReadString('\n')
30 // TermError sends an error to the user in the terminal. Like TermMessage except formatted
32 func TermError(filename string, lineNum int, err string) {
33 TermMessage(filename + ", " + strconv.Itoa(lineNum) + ": " + err)