mirror of
https://github.com/junegunn/fzf.git
synced 2025-07-31 04:02:01 -07:00
Fix #4242. Use --no-tty-default, if you want fzf to perform a TTY look-up instead of defaulting to /dev/tty.
22 lines
304 B
Go
22 lines
304 B
Go
//go:build windows
|
|
|
|
package tui
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
func ttyname() string {
|
|
return ""
|
|
}
|
|
|
|
// TtyIn on Windows returns os.Stdin
|
|
func TtyIn(ttyDefault string) (*os.File, error) {
|
|
return os.Stdin, nil
|
|
}
|
|
|
|
// TtyOut on Windows returns nil
|
|
func TtyOut(ttyDefault string) (*os.File, error) {
|
|
return nil, nil
|
|
}
|