[comp.sys.sun] Is my pty console

chuck@morgan.com (Chuck Ocheret) (11/21/90)

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        +---------------+