automation-tests/vendor/github.com/mattn/go-isatty
dependabot[bot] 9457549fff build(deps): bump github.com/vbauerster/mpb/v7 from 7.5.2 to 7.5.3
Bumps [github.com/vbauerster/mpb/v7](https://github.com/vbauerster/mpb) from 7.5.2 to 7.5.3.
- [Release notes](https://github.com/vbauerster/mpb/releases)
- [Commits](https://github.com/vbauerster/mpb/compare/v7.5.2...v7.5.3)

---
updated-dependencies:
- dependency-name: github.com/vbauerster/mpb/v7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Also bump the go module to 1.17 to be able to compile the new code.
Given containers/common and others already require go 1.17+ we're
safe to go.

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2022-09-13 08:58:22 +02: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.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