github.com/apcera/util@v0.0.0-20180322191801-7a50bc84ee48/str/term_other.go (about)

     1  // Copyright 2012 Apcera Inc. All rights reserved.
     2  
     3  // +build windows !cgo
     4  
     5  package str
     6  
     7  import (
     8  	"os"
     9  )
    10  
    11  // For now if not POSIX/*nix (isatty()) or we don't have cgo, we say false
    12  // so that we don't use ANSI markup.
    13  func IsTerminal(file *os.File) bool {
    14  	return false
    15  }