Path: utzoo!attcan!uunet!cs.utexas.edu!ut-emx!tivoli!robbie From: robbie@tivoli.UUCP (robbie) Newsgroups: comp.windows.open-look Subject: Re: Resizing xterms running vi Keywords: Openlook, X11/R3, xterm Message-ID: <177@tivoli.UUCP> Date: 8 Nov 90 20:06:01 GMT References: <3391@ryn.esg.dec.com> Reply-To: robbie@tivoli.UUCP () Organization: Tivoli Systems Inc., Austin, TX Lines: 28 In article <3391@ryn.esg.dec.com> sridhar@consl5.esg.dec.com (Pete Sridharan) writes: > > I am running Openlook 2.0 of AT&T on 386 running SVR 3.2.2: > > Is there a way of setting resources so that xterms that are running screen > oriented programs like vi and (vannila) emacs can be resized. It doesn't seem to > allow window resizing for those programs. > > Thanks in advance for your help. Nope, not unless you have source for emacs or vi. I worked at IBM on AIX and fixed my own versions to deal with this properly. I tried to get into the product but they wouldn't let me. The only system I have seen that deals with this properly is Ultrix. If you want to fix the code you can do it easily. Just trap SIGWINCH(you ignore it by default), do an ioctl() on your pty to get the new size (xterm should blat this info into the pty whenever the size is changed), and then have the program do a re-init on curses for vi, or i-don't-know-what for emacs with the new size. Other than that you are SOL. You're lucky it works on anything but 24x80. Try Interactive 386ix for instance. I only got it to work because I had fixed bugs in the IBM version of the source, and knew that ISC was the same source base at one point in time. sorry and good luck, Robbie Robinette 512 329 2455