Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!uunet!munnari.oz.au!yoyo.aarnet.edu.au!sirius.ucs.adelaide.edu.au!augean!bubbles!pete From: pete@TIRS.oz.au (Peter Bartel) Newsgroups: comp.editors Subject: Re: resizing shelltool containing vi Message-ID: <1991Mar6.235858.1052@TIRS.oz.au> Date: 6 Mar 91 23:58:58 GMT References: <1991Mar06.034658.17775@convex.com> Organization: International Railroad Systems (Electronics) Lines: 24 From article <1991Mar06.034658.17775@convex.com>, by tchrist@convex.COM (Tom Christiansen): > From the keyboard of pete@TIRS.oz.au (Peter Bartel): > :I want to be able to resize an OpenWindows shelltool/cmdtool in > :which I'm running vi (on SunOS 4.1). A crude fix would be sufficient > :such as: > : 1 resize the window > : 2 quit vi > : 3 restart vi at the same location in the file from where I quit > : > :But how can steps 2 and 3 be automated? Or is there a nicer > :solution? > > Your vi should catch the SIGWINCH and recompute your screen size. > You shouldn't ahve to do anything. > Unfortunately, this lack of automatic readjustment is a documented bug in SunOS 4.1 _______________________________________________________________________ Peter Bartel Senior Software Engineer International Phone: +61-8-232-1740 Railroad Faxstream: +61-8-232-2274 Systems E-mail: pete@TIRS.oz.au (Electronics) Snail: 209-217 Wakefield St, Adelaide, South Australia, 5000