mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-15 04:05:48 -07:00
Use winpty to launch fzf in Git bash (mintty)
Close #3806 Known limitation: * --height cannot be used
This commit is contained in:
@@ -139,7 +139,8 @@ func DurWithin(
|
||||
|
||||
// IsTty returns true if stdin is a terminal
|
||||
func IsTty() bool {
|
||||
return isatty.IsTerminal(os.Stdin.Fd())
|
||||
fd := os.Stdin.Fd()
|
||||
return isatty.IsTerminal(fd) || isatty.IsCygwinTerminal(fd)
|
||||
}
|
||||
|
||||
// ToTty returns true if stdout is a terminal
|
||||
|
Reference in New Issue
Block a user