using ioctl() to get window-size

Brad Appleton brad at SSD.CSD.HARRIS.COM
Tue Oct 2 08:29:14 AEST 1990


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 at travis.ssd.csd.harris.com   Harris Computer Systems
                          ...!uunet!hcx1!brad          Fort Lauderdale, FL USA
~~~~~~~~~~~~~~~~~~~~ Disclaimer: I said it, not my company! ~~~~~~~~~~~~~~~~~~~



More information about the Comp.unix.questions mailing list