diff options
-rw-r--r-- | vendor/github.com/gdamore/tcell/v2/tscreen.go | 6 | ||||
-rw-r--r-- | vendor/github.com/gdamore/tcell/v2/tscreen_unix.go | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/vendor/github.com/gdamore/tcell/v2/tscreen.go b/vendor/github.com/gdamore/tcell/v2/tscreen.go index 8af337d32..38fc4391b 100644 --- a/vendor/github.com/gdamore/tcell/v2/tscreen.go +++ b/vendor/github.com/gdamore/tcell/v2/tscreen.go @@ -168,11 +168,6 @@ func (t *tScreen) Init() error { t.colors[Color(i)|ColorValid] = Color(i) | ColorValid } - t.TPuts(ti.EnterCA) - t.TPuts(ti.HideCursor) - t.TPuts(ti.EnableAcs) - t.TPuts(ti.Clear) - t.quit = make(chan struct{}) t.Lock() @@ -1580,7 +1575,6 @@ func (t *tScreen) HasKey(k Key) bool { func (t *tScreen) Resize(int, int, int, int) {} - func (t *tScreen) Suspend() error { t.disengage() return nil diff --git a/vendor/github.com/gdamore/tcell/v2/tscreen_unix.go b/vendor/github.com/gdamore/tcell/v2/tscreen_unix.go index bc8d9846c..60bbcfdae 100644 --- a/vendor/github.com/gdamore/tcell/v2/tscreen_unix.go +++ b/vendor/github.com/gdamore/tcell/v2/tscreen_unix.go @@ -47,6 +47,12 @@ func (t *tScreen) engage() error { t.enablePasting(t.pasteEnabled) signal.Notify(t.sigwinch, syscall.SIGWINCH) + ti := t.ti + t.TPuts(ti.EnterCA) + t.TPuts(ti.HideCursor) + t.TPuts(ti.EnableAcs) + t.TPuts(ti.Clear) + t.wg.Add(2) go t.inputLoop(stopQ) go t.mainLoop(stopQ) |