Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
Remco cb6e5cb0c7 Major rewrite il y a 7 ans
..
_example Major rewrite il y a 7 ans
LICENSE Major rewrite il y a 7 ans
README.md Major rewrite il y a 7 ans
doc.go Major rewrite il y a 7 ans
isatty_appengine.go Major rewrite il y a 7 ans
isatty_bsd.go Major rewrite il y a 7 ans
isatty_linux.go Major rewrite il y a 7 ans
isatty_solaris.go Major rewrite il y a 7 ans
isatty_windows.go Major rewrite il y a 7 ans

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)