blob: 1c14999249baa91227c8accef0c40f3efcfe83e2 [file]
// +build plan9
package isatty
import (
"syscall"
)
func IsTerminal(fd uintptr) bool {
path, err := syscall.Fd2path(fd)
if err != nil {
return false
}
return path == "/dev/cons" || path == "/mnt/term/dev/cons"
}