No Description

Fernando Ike f60d253179 Added license file. 10 years ago
LICENSE f60d253179 Added license file. 10 years ago
README.md 02fb6bf60d Suppress int() 11 years ago
doc.go d8798807d8 godoc 11 years ago
isatty_bsd.go ae0b1f8f80 Support NetBSD. Close #2 10 years ago
isatty_linux.go 88a5f3c00f godoc 11 years ago
isatty_windows.go 88a5f3c00f godoc 11 years ago

README.md

go-isatty

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 {
		fmt.Println("Is Not Terminal")
	}
}

Installation

$ go get github.com/mattn/go-isatty

License

MIT

Author

Yasuhiro Matsumoto (a.k.a mattn)