terraform/vendor/github.com/mattn/go-isatty
James Bardin cfa299d2ee Update deps in unknown state and rever nomad
Nomad was manually updated, so revert that to the version in master,
remove it from vendor.json and add it to the ignore list.

Update all packages that were in an unknown state to their latest master
commits.
2017-01-19 20:10:17 -05:00
..
LICENSE Vendor all dependencies w/ Godep 2016-01-29 15:08:48 -06:00
README.md Vendor all dependencies w/ Godep 2016-01-29 15:08:48 -06:00
doc.go Vendor all dependencies w/ Godep 2016-01-29 15:08:48 -06:00
isatty_bsd.go Update deps in unknown state and rever nomad 2017-01-19 20:10:17 -05:00
isatty_linux.go Vendor all dependencies w/ Godep 2016-01-29 15:08:48 -06:00
isatty_solaris.go Vendor all dependencies w/ Godep 2016-01-29 15:08:48 -06:00
isatty_windows.go Vendor all dependencies w/ Godep 2016-01-29 15:08:48 -06:00

README.md

go-isatty

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 {
		fmt.Println("Is Not Terminal")
	}
}

Installation

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

License

MIT

Author

Yasuhiro Matsumoto (a.k.a mattn)