aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/terminal.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/terminal.go')
-rw-r--r--widgets/terminal.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/widgets/terminal.go b/widgets/terminal.go
index 8fc38cea..77da71e6 100644
--- a/widgets/terminal.go
+++ b/widgets/terminal.go
@@ -4,6 +4,7 @@ import (
"os"
"os/exec"
"sync"
+ "syscall"
"git.sr.ht/~sircmpwn/aerc/lib/ui"
@@ -237,7 +238,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, &syscall.SysProcAttr{Setsid: true, Setctty: true, Ctty: 1})
term.pty = tty
if err != nil {
term.Close(err)