delve/vendor/github.com/mattn/go-isatty
Hyang-Ah Hana Kim 5bd46f34be vendor: update vendored packages (#791)
* pkg/proc: use golang.org/x/arch/x86/x86asm

instead of rsc.io/x86/x86asm

* pkg/dwarf: migrate to github.com/pkg/profile

from github.com/davecheney/profile

* scripts: keep script go files from being considered for the build

scripts/gen-*.go files are scripts for generating documentation
files and don't follow the typical Go package layout. Expected
usage is like

   go run scripts/gen-cli-docs.go

* vendor: update vendored packages

There were many changes in delve, and go tool chains since last
vendored package update. I just rerun godpes from scratch.

$ rm vendor/*
$ rm Godeps/Godeps.json
$ go list ./... | grep -v /vendor/ | grep -v /scripts/ | go get -u -t
$ go get -u github.com/mattn/go-colorable
$ go get -u github.com/mattn/go-isatty
$ go list ./... | grep -v /vendor/ | grep -v /scripts/ | godeps save
2017-04-17 14:13:00 -07:00
..
.travis.yml vendor: update vendored packages (#791) 2017-04-17 14:13:00 -07:00
doc.go terminal: Use go-colorable 2016-04-18 12:49:14 -07:00
isatty_appengine.go vendor: update vendored packages (#791) 2017-04-17 14:13:00 -07:00
isatty_bsd.go vendor: update vendored packages (#791) 2017-04-17 14:13:00 -07:00
isatty_linux.go terminal: Use go-colorable 2016-04-18 12:49:14 -07:00
isatty_others.go vendor: update vendored packages (#791) 2017-04-17 14:13:00 -07:00
isatty_solaris.go terminal: Use go-colorable 2016-04-18 12:49:14 -07:00
isatty_windows.go vendor: update vendored packages (#791) 2017-04-17 14:13:00 -07:00
LICENSE terminal: Use go-colorable 2016-04-18 12:49:14 -07:00
README.md vendor: update vendored packages (#791) 2017-04-17 14:13:00 -07:00

go-isatty

Godoc Reference Build Status Coverage Status Go Report Card

isatty for golang

Usage

package main

import (
	"fmt"
	"github.com/mattn/go-isatty"
	"os"
)

func main() {
	if isatty.IsTerminal(os.Stdout.Fd()) {
		fmt.Println("Is Terminal")
	} else if isatty.IsCygwinTerminal(os.Stdout.Fd()) {
		fmt.Println("Is Cygwin/MSYS2 Terminal")
	} else {
		fmt.Println("Is Not Terminal")
	}
}

Installation

$ go get github.com/mattn/go-isatty

License

MIT

Author

Yasuhiro Matsumoto (a.k.a mattn)

Thanks