Files
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
..
2023-07-11 06:36:10 -05:00
2023-07-11 06:36:10 -05:00
2023-07-11 06:36:10 -05:00
2023-07-11 06:36:10 -05:00
2023-07-11 06:36:10 -05:00
2023-07-11 06:36:10 -05:00
2023-07-11 06:36:10 -05:00
2023-07-11 06:36:10 -05:00
2023-07-11 06:36:10 -05:00
2023-07-11 06:36:10 -05: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