podman/vendor/github.com/mattn/go-isatty
Brent Baude 4e96686e9d AppleHV enablement pass #2
* Use vfkit command line assembly
* Inject ignition file into guest using http over vsock
* Ready notification through use of vsock

[NO NEW TESTS NEEDED]

Signed-off-by: Brent Baude <bbaude@redhat.com>
2023-07-11 06:36:10 -05:00
..
LICENSE AppleHV enablement pass #2 2023-07-11 06:36:10 -05:00
README.md AppleHV enablement pass #2 2023-07-11 06:36:10 -05:00
doc.go AppleHV enablement pass #2 2023-07-11 06:36:10 -05:00
go.test.sh AppleHV enablement pass #2 2023-07-11 06:36:10 -05:00
isatty_bsd.go AppleHV enablement pass #2 2023-07-11 06:36:10 -05:00
isatty_others.go AppleHV enablement pass #2 2023-07-11 06:36:10 -05:00
isatty_plan9.go AppleHV enablement pass #2 2023-07-11 06:36:10 -05:00
isatty_solaris.go AppleHV enablement pass #2 2023-07-11 06:36:10 -05:00
isatty_tcgets.go AppleHV enablement pass #2 2023-07-11 06:36:10 -05:00
isatty_windows.go AppleHV enablement pass #2 2023-07-11 06:36:10 -05: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