close termbox during skipping commands

Mentioned in #8.
This commit is contained in:
Gokcehan committed 2016-08-27 00:20:08 +03:00
1 parent d9583187e5
commit df6c23769f
2 files changed
+4 -17

No files matched your search

-8
View File
@@ -490,14 +490,6 @@ func (ui *UI) sync() {
if err := termbox.Sync(); err != nil {
log.Printf("syncing termbox: %s", err)
}
termbox.SetCursor(0, 0)
termbox.HideCursor()
// TODO: is there an easier way to clear residual escape codes?
termbox.Close()
if err := termbox.Init(); err != nil {
log.Fatalf("initializing termbox: %s", err)
}
}
func (ui *UI) showMenu(b *bytes.Buffer) {