From a929fdc211ad3333d4dd46523a81ec20610ac5cb Mon Sep 17 00:00:00 2001 From: Russ Magee Date: Sat, 30 Nov 2024 18:46:15 -0800 Subject: [PATCH] Fix term check to work for MSYS64/CYGWIN64 --- xs/xs.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xs/xs.go b/xs/xs.go index 9269411..f350b4e 100755 --- a/xs/xs.go +++ b/xs/xs.go @@ -1034,7 +1034,8 @@ func main() { //nolint: funlen, gocyclo // === Terminal mode adjustment for session if shellMode { - if isatty.IsTerminal(os.Stdin.Fd()) { + if isatty.IsTerminal(os.Stdin.Fd()) || + isatty.IsCygwinTerminal(os.Stdin.Fd()) { oldState, err = xs.MakeRaw(os.Stdin) if err != nil { panic(err)