summaryrefslogtreecommitdiffstats
path: root/src/terminal.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2023-02-14 23:21:34 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2023-02-15 23:24:42 +0900
commit4e305eca26924a14d05758fb381edca1c5a5f55b (patch)
tree293e1e551d6d79e7037bba6510fe1b49a822a25e /src/terminal.go
parent9e9c0ceaf48ddbc3fe09850fb403708438edbed2 (diff)
become: Set stdin to /dev/tty
Diffstat (limited to 'src/terminal.go')
-rw-r--r--src/terminal.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/terminal.go b/src/terminal.go
index 18f83530..8ab5434c 100644
--- a/src/terminal.go
+++ b/src/terminal.go
@@ -2876,6 +2876,7 @@ func (t *Terminal) Loop() {
if t.history != nil {
t.history.append(string(t.input))
}
+ util.SetStdin(tui.TtyIn())
syscall.Exec(shellPath, []string{shell, "-c", command}, os.Environ())
}
}