[comp.os.minix] Detecting ttyness of a fp

jtt@cunixa.cc.columbia.edu (James T. Tanis) (01/31/91)

Hi-

I'm writing a shell, and would like to see if stdin is a tty or not. Could
some kind soul tell me how to do this? I assume it involves gtty or ioctl,
but I have no access to documentation on these calls (and would prefer not
to dissect the source)

mail replies preferred, of post if you think everyone is as ignorant as I.

Thanks!
-JT