3 [![Godoc Reference](https://godoc.org/github.com/mattn/go-isatty?status.svg)](http://godoc.org/github.com/mattn/go-isatty)
4 [![Build Status](https://travis-ci.org/mattn/go-isatty.svg?branch=master)](https://travis-ci.org/mattn/go-isatty)
5 [![Coverage Status](https://coveralls.io/repos/github/mattn/go-isatty/badge.svg?branch=master)](https://coveralls.io/github/mattn/go-isatty?branch=master)
6 [![Go Report Card](https://goreportcard.com/badge/mattn/go-isatty)](https://goreportcard.com/report/mattn/go-isatty)
17 "github.com/mattn/go-isatty"
22 if isatty.IsTerminal(os.Stdout.Fd()) {
23 fmt.Println("Is Terminal")
24 } else if isatty.IsCygwinTerminal(os.Stdout.Fd()) {
25 fmt.Println("Is Cygwin/MSYS2 Terminal")
27 fmt.Println("Is Not Terminal")
35 $ go get github.com/mattn/go-isatty
44 Yasuhiro Matsumoto (a.k.a mattn)
48 * k-takata: base idea for IsCygwinTerminal
50 https://github.com/k-takata/go-iscygpty