Dont detach process under vterm

Signed-off-by: Guillaume J. Charmes <git+guillaume@charmes.net>
This commit is contained in:
Guillaume J. Charmes 2020-05-05 12:43:31 -04:00 committed by Drew DeVault
parent 6bd6690d80
commit d07cf6c667
3 changed files with 4 additions and 2 deletions

View file

@ -237,7 +237,7 @@ func (term *Terminal) Draw(ctx *ui.Context) {
if term.pty == nil {
term.vterm.SetSize(ctx.Height(), ctx.Width())
tty, err := pty.StartWithSize(term.cmd, &winsize)
tty, err := pty.StartWithAttrs(term.cmd, &winsize, nil)
term.pty = tty
if err != nil {
term.Close(err)