summaryrefslogtreecommitdiffstats
path: root/src/tui/tcell.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/tui/tcell.go')
-rw-r--r--src/tui/tcell.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/tui/tcell.go b/src/tui/tcell.go
index 3399d32b..8de6fe35 100644
--- a/src/tui/tcell.go
+++ b/src/tui/tcell.go
@@ -6,9 +6,6 @@ import (
"time"
"unicode/utf8"
- "fmt"
- "os"
-
"runtime"
// https://github.com/gdamore/tcell/pull/135
@@ -123,12 +120,10 @@ var (
func (r *FullscreenRenderer) initScreen() {
s, e := tcell.NewScreen()
if e != nil {
- fmt.Fprintf(os.Stderr, "%v\n", e)
- errorExit()
+ errorExit(e.Error())
}
if e = s.Init(); e != nil {
- fmt.Fprintf(os.Stderr, "%v\n", e)
- errorExit()
+ errorExit(e.Error())
}
if r.mouse {
s.EnableMouse()