mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-06-12 20:22:21 +00:00
f84b3de24b
https://github.com/junegunn/fzf/issues/1360#issuecomment-788178140 # Redirect /dev/tty to suppress "Vim: Warning: Input is not from a terminal" ls | fzf --bind "enter:execute(vim {} < /dev/tty)" # With this change, we can omit "< /dev/tty" part ls | fzf --bind "enter:execute(vim {})"
15 lines
163 B
Go
15 lines
163 B
Go
// +build windows
|
|
|
|
package tui
|
|
|
|
import "os"
|
|
|
|
func ttyname() string {
|
|
return ""
|
|
}
|
|
|
|
// TtyIn on Windows returns os.Stdin
|
|
func TtyIn() *os.File {
|
|
return os.Stdin
|
|
}
|