podman/vendor/github.com/mattn/go-isatty
dependabot[bot] 5090920cc0
Bump github.com/mattn/go-isatty from 0.0.12 to 0.0.14
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty) from 0.0.12 to 0.0.14.
- [Release notes](https://github.com/mattn/go-isatty/releases)
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.12...v0.0.14)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-isatty
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-30 12:27:25 +00:00
..
LICENSE short-name aliasing 2020-11-13 15:40:06 +01:00
README.md Switch all builds to pull-never 2021-03-16 06:19:58 -04:00
doc.go short-name aliasing 2020-11-13 15:40:06 +01:00
go.mod Bump github.com/mattn/go-isatty from 0.0.12 to 0.0.14 2021-09-30 12:27:25 +00:00
go.sum Switch all builds to pull-never 2021-03-16 06:19:58 -04:00
go.test.sh Switch all builds to pull-never 2021-03-16 06:19:58 -04:00
isatty_bsd.go Bump github.com/mattn/go-isatty from 0.0.12 to 0.0.14 2021-09-30 12:27:25 +00:00
isatty_others.go Bump github.com/mattn/go-isatty from 0.0.12 to 0.0.14 2021-09-30 12:27:25 +00:00
isatty_plan9.go Bump github.com/mattn/go-isatty from 0.0.12 to 0.0.14 2021-09-30 12:27:25 +00:00
isatty_solaris.go Bump github.com/mattn/go-isatty from 0.0.12 to 0.0.14 2021-09-30 12:27:25 +00:00
isatty_tcgets.go Bump github.com/mattn/go-isatty from 0.0.12 to 0.0.14 2021-09-30 12:27:25 +00:00
isatty_windows.go Bump github.com/mattn/go-isatty from 0.0.12 to 0.0.14 2021-09-30 12:27:25 +00:00

README.md

go-isatty

Godoc Reference Codecov 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