Per POSIX,
isatty is allowed to set errno to ENOTTY when handed a file descriptor to something that's not a terminal device, like one opened to a regular file. Should we signal an error, or just return #f in that case? Ditto if the port handed to
tty? does not have a file descriptor, like a string port.