become: Set stdin to /dev/tty

This commit is contained in:
Junegunn Choi
2023-02-14 23:21:34 +09:00
parent 9e9c0ceaf4
commit 4e305eca26
3 changed files with 11 additions and 0 deletions

View File

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