summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/gdamore/tcell/v2/tscreen_unix.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-04-06 17:39:05 +1000
committerJesse Duffield <jessedduffield@gmail.com>2021-04-06 19:34:32 +1000
commit1ae8523098daddb890af03d447d5c12bd08952c8 (patch)
tree260633d4722e54bfe5e08dc60c308d35487f3619 /vendor/github.com/gdamore/tcell/v2/tscreen_unix.go
parent8eb802d3a090e16026ad0acfa69844f85229e2c1 (diff)
restore contents on resume from subprocess
The proper fix will come out of this PR but it's not yet merged: https://github.com/gdamore/tcell/pull/439/files In the meantime I'm just going to directly edit this from my vendor directory. If it ends up stretching a while I'll fork tcell properly and use the fork.
Diffstat (limited to 'vendor/github.com/gdamore/tcell/v2/tscreen_unix.go')
-rw-r--r--vendor/github.com/gdamore/tcell/v2/tscreen_unix.go6
1 files changed, 6 insertions, 0 deletions
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)