Enable alt screen on built-in terminal

This commit is contained in:
Drew DeVault 2019-03-21 21:24:23 -04:00
parent 15b856abcc
commit 960d11c4bc

View file

@ -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()