From 4e305eca26924a14d05758fb381edca1c5a5f55b Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 14 Feb 2023 23:21:34 +0900 Subject: become: Set stdin to /dev/tty --- src/util/util_windows.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/util/util_windows.go') diff --git a/src/util/util_windows.go b/src/util/util_windows.go index b3f4e016..aa69b99d 100644 --- a/src/util/util_windows.go +++ b/src/util/util_windows.go @@ -81,3 +81,7 @@ func SetNonblock(file *os.File, nonblock bool) { func Read(fd int, b []byte) (int, error) { return syscall.Read(syscall.Handle(fd), b) } + +func SetStdin(file *os.File) { + // No-op +} -- cgit v1.2.3