aboutsummaryrefslogtreecommitdiff
path: root/widgets
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-03-21 21:24:23 -0400
committerDrew DeVault <sir@cmpwn.com>2019-03-21 21:24:23 -0400
commit960d11c4bc2e8343f1369de43e2323ae1fcfb7c1 (patch)
treeb5597f9000766c345a10774f4557f6a0a67c464b /widgets
parent15b856abccef75361ccd64221757c8b63ef1d441 (diff)
Enable alt screen on built-in terminal
Diffstat (limited to 'widgets')
-rw-r--r--widgets/terminal.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/widgets/terminal.go b/widgets/terminal.go
index 24925ae..4a06c1b 100644
--- a/widgets/terminal.go
+++ b/widgets/terminal.go
@@ -140,6 +140,7 @@ func NewTerminal(cmd *exec.Cmd) (*Terminal, error) {
screen.OnDamage = term.onDamage
screen.OnMoveCursor = term.onMoveCursor
screen.OnSetTermProp = term.onSetTermProp
+ screen.EnableAltScreen(true)
screen.Reset(true)
state := term.vterm.ObtainState()