debian-forge-composer/vendor/github.com/mattn/go-isatty
dependabot[bot] 96067cf511 build(deps): bump github.com/labstack/echo/v4 from 4.10.0 to 4.10.2
Bumps [github.com/labstack/echo/v4](https://github.com/labstack/echo) from 4.10.0 to 4.10.2.
- [Release notes](https://github.com/labstack/echo/releases)
- [Changelog](https://github.com/labstack/echo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/labstack/echo/compare/v4.10.0...v4.10.2)

---
updated-dependencies:
- dependency-name: github.com/labstack/echo/v4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-23 13:08:02 +02:00
..
doc.go worker: use openapi spec and generated code 2020-09-06 18:42:23 +01:00
go.test.sh jobqueue: Introduce jobqueue backed by a postgres database 2021-07-28 21:52:31 +01:00
isatty_bsd.go build(deps): bump github.com/labstack/echo/v4 from 4.10.0 to 4.10.2 2023-05-23 13:08:02 +02:00
isatty_others.go build(deps): bump github.com/labstack/echo/v4 from 4.5.0 to 4.6.0 2021-09-27 14:35:27 +02:00
isatty_plan9.go build(deps): bump github.com/labstack/echo/v4 from 4.5.0 to 4.6.0 2021-09-27 14:35:27 +02:00
isatty_solaris.go build(deps): bump github.com/labstack/echo/v4 from 4.5.0 to 4.6.0 2021-09-27 14:35:27 +02:00
isatty_tcgets.go build(deps): bump github.com/labstack/echo/v4 from 4.5.0 to 4.6.0 2021-09-27 14:35:27 +02:00
isatty_windows.go build(deps): bump github.com/labstack/echo/v4 from 4.5.0 to 4.6.0 2021-09-27 14:35:27 +02: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