// IsNotTerminal checks if an error is related to io not being a terminal.

IsNotTerminal checks if an error is related to io not being a terminal.
// IsNotTerminal checks if an error is related to io not being a terminal .
func IsNotTerminal(err error) bool {
	errno, ok := err.(syscall.Errno)
	if ok && errno == errnoInvalidHandle {
		return true
	}
	return false
}
func IsNotTerminal ( err error ) bool { errno , ok := err . ( syscall . Errno ) if ok && errno == errnoInvalidHandle { return true } return false }
IsNotTerminal checks if an error is related to io not being a terminal.
IsNotTerminal checks if an error is related to io not being a terminal .