termio question

Pim Zandbergen pim at cti-software.nl
Mon Aug 28 05:05:28 AEST 1989

al at inebriae.UUCP (Al Evans) writes:

|Some pieces of software (specifically, bnews and Nethack 3.0f) depend
|upon the existence of the TIOCGWINSZ ioctl call in determining their
|strategies for getting the number of rows and columns the current terminal
|supports. In these two case, at least, the software assumes that
|#ifdef TIOCGWINSZ, there is also a defined structure winsize. My
|copy of /usr/lib/sys/termio.h does not define this structure, nor does

Just #include <sys/stream.h> and <sys/ptem.h>, in that order.
Pim Zandbergen                                 internet : pim at cti-software.nl
CTI Software BV                                uucp     : ..!uunet!ctisbv!pim
Laan Copes van Cattenburch 70                  phone    : +31 70 542302
2585 GD The Hague, The Netherlands             fax      : +31 70 512837

More information about the Comp.unix.i386 mailing list