Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!mailrus!uflorida!travis!brad From: brad@SSD.CSD.HARRIS.COM (Brad Appleton) Newsgroups: comp.unix.questions Subject: using ioctl() to get window-size Summary: How do I do it in a non-POSIX environment. Message-ID: <1123@travis.csd.harris.com> Date: 1 Oct 90 22:29:14 GMT Sender: news@travis.csd.harris.com Organization: Harris Computers Systems Division, Fort Lauderdale,FL Lines: 14 I have a program that wants to get the current window size of the terminal (the number of rows and columns). I would like to do this using ioctl(). I know that POSIX compliant systems (and some POSIX conforming hopefuls) have a TIOCGWINSZ mask for ioctl(). This works just fine and dandy. Is there some other way to get this info from ioctl other than via TIOCGWINSZ?? If so, how portable is it (AT&T only? BSD only? SunOS only? ...)? working source fragments would be great! advTHANXance ______________________ "And miles to go before I sleep." ______________________ Brad Appleton brad@travis.ssd.csd.harris.com Harris Computer Systems ...!uunet!hcx1!brad Fort Lauderdale, FL USA ~~~~~~~~~~~~~~~~~~~~ Disclaimer: I said it, not my company! ~~~~~~~~~~~~~~~~~~~