Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!emory!att!pacbell.com!pacbell!sactoh0!unify!openlook!openlook-request From: patl@Eng.Sun.COM (Pat Lashley [MtV NeWStech Eng.]) Newsgroups: comp.windows.open-look Subject: Re: Resizing xterms running vi Message-ID: <4nezfd5@openlook.Unify.Com> Date: 9 Nov 90 01:06:18 GMT Lines: 21 |> 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. GNU emacs (18.54) catches SIGWINCH and resizes properly under SunOS.