internal/terminal/terminal.go
func IsTerminal(fd int) bool {
	_, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
	return err == nil
}
func IsTerminal(fd int) bool {
	_, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
	return err == nil
}
func IsTerminal ( fd int ) bool { _ , err := unix . IoctlGetTermios ( fd , ioctlReadTermios ) return err == nil }
// IsTerminal returns true if the given file descriptor is a terminal.
IsTerminal returns true if the given file descriptor is a terminal .