Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!sol.ctr.columbia.edu!cunixf.cc.columbia.edu!cunixa.cc.columbia.edu!jtt From: jtt@cunixa.cc.columbia.edu (James T. Tanis) Newsgroups: comp.os.minix Subject: Detecting ttyness of a fp Message-ID: <1991Jan30.170709.2412@cunixf.cc.columbia.edu> Date: 30 Jan 91 17:07:09 GMT Sender: news@cunixf.cc.columbia.edu (The Daily News) Organization: Columbia University Lines: 11 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