vendor/github.com/mattn/go-isatty/isatty_solaris.go
changeset 251 1c52a0eeb952
parent 242 2a9ec03fe5a1
child 256 6d9efbef00a9
equal deleted inserted replaced
250:c040f992052f 251:1c52a0eeb952
    12 func IsTerminal(fd uintptr) bool {
    12 func IsTerminal(fd uintptr) bool {
    13 	var termio unix.Termio
    13 	var termio unix.Termio
    14 	err := unix.IoctlSetTermio(int(fd), unix.TCGETA, &termio)
    14 	err := unix.IoctlSetTermio(int(fd), unix.TCGETA, &termio)
    15 	return err == nil
    15 	return err == nil
    16 }
    16 }
       
    17 
       
    18 // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2
       
    19 // terminal. This is also always false on this environment.
       
    20 func IsCygwinTerminal(fd uintptr) bool {
       
    21 	return false
       
    22 }