From 960d11c4bc2e8343f1369de43e2323ae1fcfb7c1 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 21 Mar 2019 21:24:23 -0400 Subject: [PATCH] Enable alt screen on built-in terminal --- widgets/terminal.go | 1 + 1 file changed, 1 insertion(+) 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()