Open
Description
👋🏻
I have the following example, which when run on a Windows 10 VM with Cygwin configured it doesn't actually report anything other than "Is Terminal", when I would expect both that and "Is Cygwin/MSYS2 Terminal" to be displayed.
package main
import (
"fmt"
"os"
"github.com/mattn/go-isatty"
)
func main() {
if isatty.IsTerminal(os.Stdout.Fd()) {
fmt.Println("Is Terminal")
}
if isatty.IsCygwinTerminal(os.Stdout.Fd()) {
fmt.Println("Is Cygwin/MSYS2 Terminal")
}
}
Let me know if you need any more information.
Thanks!
Metadata
Assignees
Labels
No labels
Activity