Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!orstcs!statware!scf From: scf@statware.UUCP (Steve Fullerton) Newsgroups: comp.unix.sysv386 Subject: TIOCGWINSZ on SCO UNIX 3.2 Message-ID: <9414@statware.UUCP> Date: 28 Nov 90 19:03:23 GMT Reply-To: scf%statware.UUCP@cs.orst.edu (Steve Fullerton) Distribution: na Organization: Statware, Corvallis, Oregon Lines: 30 I have been trying to get the following code to work for SCO UNIX: #include #include #include #include #include #include main() { struct winsize xwin; if (ioctl(0, TIOCGWINSZ, &xwin) == 0) printf("Window size: %d x %d\n",xwin.ws_row,xwin.ws_col); else printf("errno = %d\n",errno); } So far all I get is an errno of 22. This code works fine on many other systems (different include files though) such as Sun, HP, IBM RS/6000, DG AViiON, etc. If anyone has managed to get this call to work for SCO UNIX, I would appreciate learning how. BTW, I have SCO UNIX System V/386 3.2 Version 2.0. -- Steve Fullerton Statware, Inc. scf%statware.uucp@cs.orst.edu 260 SW Madison Ave, Suite 109 orstcs!statware!scf Corvallis, OR 97333 503/753-5382