debian-forge-composer/vendor/github.com/mattn/go-isatty
Ondřej Budai 19a3bdf450 go: update most dependencies to the latest version
It's a lot of work for dependabot for our outdated deps, let's
help it by making one huge manual update.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2021-09-05 12:50:02 +01:00
..
.travis.yml jobqueue: Introduce jobqueue backed by a postgres database 2021-07-28 21:52:31 +01:00
doc.go worker: use openapi spec and generated code 2020-09-06 18:42:23 +01:00
go.mod jobqueue: Introduce jobqueue backed by a postgres database 2021-07-28 21:52:31 +01:00
go.sum jobqueue: Introduce jobqueue backed by a postgres database 2021-07-28 21:52:31 +01:00
go.test.sh jobqueue: Introduce jobqueue backed by a postgres database 2021-07-28 21:52:31 +01:00
isatty_bsd.go jobqueue: Introduce jobqueue backed by a postgres database 2021-07-28 21:52:31 +01:00
isatty_others.go go: update most dependencies to the latest version 2021-09-05 12:50:02 +01:00
isatty_plan9.go jobqueue: Introduce jobqueue backed by a postgres database 2021-07-28 21:52:31 +01:00
isatty_solaris.go go: update most dependencies to the latest version 2021-09-05 12:50:02 +01:00
isatty_tcgets.go go: update most dependencies to the latest version 2021-09-05 12:50:02 +01:00
isatty_windows.go worker: use openapi spec and generated code 2020-09-06 18:42:23 +01:00
LICENSE worker: use openapi spec and generated code 2020-09-06 18:42:23 +01:00
README.md jobqueue: Introduce jobqueue backed by a postgres database 2021-07-28 21:52:31 +01:00

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