vendor: update dependencies with github.com/kardianos/govendor
This commit is contained in:
14
vendor/github.com/mattn/go-isatty/README.md
generated
vendored
14
vendor/github.com/mattn/go-isatty/README.md
generated
vendored
@ -1,5 +1,7 @@
|
||||
# go-isatty
|
||||
|
||||
[](https://travis-ci.org/mattn/go-isatty) [](https://coveralls.io/github/mattn/go-isatty?branch=master)
|
||||
|
||||
isatty for golang
|
||||
|
||||
## Usage
|
||||
@ -16,6 +18,8 @@ import (
|
||||
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")
|
||||
}
|
||||
@ -28,10 +32,16 @@ func main() {
|
||||
$ go get github.com/mattn/go-isatty
|
||||
```
|
||||
|
||||
# License
|
||||
## License
|
||||
|
||||
MIT
|
||||
|
||||
# Author
|
||||
## Author
|
||||
|
||||
Yasuhiro Matsumoto (a.k.a mattn)
|
||||
|
||||
## Thanks
|
||||
|
||||
* k-takata: base idea for IsCygwinTerminal
|
||||
|
||||
https://github.com/k-takata/go-iscygpty
|
||||
|
Reference in New Issue
Block a user