Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!sdd.hp.com!uakari.primate.wisc.edu!aplcen!uunet!mcsun!ukc!dcl-cs!aber-cs!athene!pcg From: pcg@cs.aber.ac.uk (Piercarlo Grandi) Newsgroups: comp.unix.i386 Subject: Re: TIOCGWINSZ & SIGWINCH: who needs 'em? Message-ID: Date: 26 Aug 90 17:16:54 GMT References: <2037@jwt.UUCP> Sender: pcg@aber-cs.UUCP Organization: Coleg Prifysgol Cymru Lines: 30 In-reply-to: john@jwt.UUCP's message of 21 Aug 90 18:26:59 GMT On 21 Aug 90 18:26:59 GMT, john@jwt.UUCP (John Temples) said: john> While compiling a new software package (trn), I was again stung by john> the fact that the definition of TIOCGWINSZ in my ESIX system led the john> software to believe I had "struct winsize" defined. AT&T has put the definitions of these two things in some non obvious place. have a look round /usr/include/sys... john> Is there any reason that these constants are defined in a System john> V/386 system? Are they actually supported? Yes, because you can hav windows or funny sizes "screens" at the other end of a stream, or of an xt line, or whatever. john> Is there any reason I shouldn't just comment them out of the system john> include files? For vanilla applications, there is no reason whatever. If you run windowing, you had better put them in. Where on earth will your application or curses library find the window "screen" size otherwise? Oh, I wish that the UNIX tty subsystem were not as bad as it has been traditionally. I only pray that streams will soon be used throughout (read SVR4), as they offer some more elegant way of addressing many problems (ptys, etc...). -- Piercarlo "Peter" Grandi | ARPA: pcg%uk.ac.aber.cs@nsfnet-relay.ac.uk Dept of CS, UCW Aberystwyth | UUCP: ...!mcsun!ukc!aber-cs!pcg Penglais, Aberystwyth SY23 3BZ, UK | INET: pcg@cs.aber.ac.uk