mirror of https://gogs.blitter.com/RLabs/xs
Fix term check to work for MSYS64/CYGWIN64
This commit is contained in:
parent
fc66a0557a
commit
a929fdc211
3
xs/xs.go
3
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)
|
||||
|
|
Loading…
Reference in New Issue