Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site bu-cs.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!bu-cs!root From: root@bu-cs.UUCP (Barry Shein) Newsgroups: net.micro.att Subject: Obscure feature in PC7300 windows (?) Message-ID: <495@bu-cs.UUCP> Date: Sun, 14-Jul-85 18:06:22 EDT Article-I.D.: bu-cs.495 Posted: Sun Jul 14 18:06:22 1985 Date-Received: Wed, 17-Jul-85 05:35:23 EDT Organization: Boston Univ Comp. Sci. Lines: 33 Please tell me if I am wrong but if I create a new window and immediately try to query it's size, it will be zero X zero as in: (my actual code has more err checks, that's not the problem!) #includestruct uwdata uw ; close(0) ; open("/dev/window",2) ; close(1) ; close(2) ; dup(0) ; dup(0) ; /* stdin, stdout and stderr are all in the window */ ioctl(0,WIOCGETD,&uw) ; printf("%d X %d\n",uw_width,uw_height) ; will print 0 X 0 If I add any output such as: write(1,"Hello World\n",12) ; before the ioctl, then all is well, so, question: does anyone know exactly what is going on here, like is there another way to wake things up besides scribbling i/o? Is this a bug or a feature? Thanks in advance. -Barry Shein, Boston University P.S. Not serious, but confusing till ya figure out how to work-around.