Use winpty to launch fzf in Git bash (mintty)

Close #3806

Known limitation:
* --height cannot be used
This commit is contained in:
Junegunn Choi committed 2024-05-20 18:24:14 +09:00
1 parent aee417c46a
commit 573df524fe
12 files changed
+315 -157

No files matched your search

+2 -1
View File
@@ -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