code: func IsTerminal(f *os.File) bool {
  	if runtime.GOOS == "windows" {
  		return false
  	}
  
  	fd := f.Fd()
  	return os.Getenv("TERM") != "dumb" && (isatty.IsTerminal(fd) || isatty.IsCygwinTerminal(fd))
  }
docs: // IsTerminal return true if the file descriptor is terminal and the TERM
  // environment variable isn't a dumb one.