Path: utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice!sun-spots-request From: chuck@morgan.com (Chuck Ocheret) Newsgroups: comp.sys.sun Subject: Is my pty console (a la TIOCCONS) Keywords: Miscellaneous Message-ID: <346@brchh104.bnr.ca> Date: 20 Nov 90 18:00:01 GMT Sender: news@brchh104.bnr.ca Organization: Sun-Spots Lines: 11 Approved: Sun-Spots@rice.edu X-Original-Date: 1 Nov 90 20:06:08 GMT X-Sun-Spots-Digest: Volume 9, Issue 371, message 14 X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu Is there some way to determine if your pseudo terminal has had an ioctl(TIOCCONS...) run on it. I have a need to determine if a shell is running in a console window. Actually I need to know if the shell is running in an xterm that was invoked with the -C option. Thanks, +--------------------+ Chuck Ocheret, Sr. Staff Engineer +---------------+ |chuck@APT.Morgan.COM| Morgan Stanley & Co., Inc. |(212) 703-4474 | | Duty now ... |19th Floor, 1251 Avenue of the Americas|for the future.| +--------------------+ New York, N.Y. 10020 USA +---------------+