terraform-provider-docker/vendor/github.com/mattn/go-isatty
dubo-dubon-duponey 27a9f37c69 Move to standalone plugin SDK (#200)
Closes #197 
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2019-10-09 20:25:38 +02:00
..
.travis.yml Update to Terraform 0.12 (#150). Closes #144 2019-06-11 00:24:55 +02:00
doc.go deps: github.com/hashicorp/terraform@sdk-v0.11-with-go-modules 2019-03-11 18:19:31 -04:00
isatty_appengine.go Move to standalone plugin SDK (#200) 2019-10-09 20:25:38 +02:00
isatty_bsd.go Move to standalone plugin SDK (#200) 2019-10-09 20:25:38 +02:00
isatty_linux.go Move to standalone plugin SDK (#200) 2019-10-09 20:25:38 +02:00
isatty_linux_ppc64x.go Move to standalone plugin SDK (#200) 2019-10-09 20:25:38 +02:00
isatty_others.go Move to standalone plugin SDK (#200) 2019-10-09 20:25:38 +02:00
isatty_solaris.go Move to standalone plugin SDK (#200) 2019-10-09 20:25:38 +02:00
isatty_windows.go Update to Terraform 0.12 (#150). Closes #144 2019-06-11 00:24:55 +02:00
LICENSE deps: github.com/hashicorp/terraform@sdk-v0.11-with-go-modules 2019-03-11 18:19:31 -04:00
README.md Update to Terraform 0.12 (#150). Closes #144 2019-06-11 00:24:55 +02: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