github.com/ladydascalie/elvish@v0.0.0-20170703214355-2964dd3ece7f/sys/isatty.go (about)

     1  package sys
     2  
     3  import (
     4  	"github.com/mattn/go-isatty"
     5  )
     6  
     7  func IsATTY(fd int) bool {
     8  	return isatty.IsTerminal(uintptr(fd)) ||
     9  		isatty.IsCygwinTerminal(uintptr(fd))
    10  }