Xref: utzoo comp.windows.x:37967 comp.windows.open-look:1785 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!lll-winken!ames!bart!schoch From: schoch@starnet.com (Steve Schoch) Newsgroups: comp.windows.x,comp.windows.open-look Subject: Re: Is there an X-enhanced `vi' ?? Message-ID: <1991Jun26.024601.5106@starnet.com> Date: 26 Jun 91 02:46:01 GMT References: <1991Jun25.135342.11766@aifh.ed.ac.uk> Reply-To: schoch@bart.starnet.com (Steve Schoch) Organization: Starnet Communication Corporation, Santa Clara, CA Lines: 23 In article <1991Jun25.135342.11766@aifh.ed.ac.uk> gordonc@aifh.ed.ac.uk (Gordon Cameron (RA DAI)) writes: > >Does anyone know of a version of `vi' available which executes >satisfactorily under X11/Xview ?? (i.e. Resizes automatically on window >resizes etc...) The necessary hooks to do this are already in most systems. To have it work, your system must do several things right: 1) xterm must give a new window size to the pty with the TIOCWINSIZE (or something like that) ioctl. 2) The tty driver must give a SIGWINCH to the current process when it's winsize changes. 3) vi must trap the SIGWINCH and redraw. Most vi's do this. It will work correctly on BSD 4.3. The ioctl #define is different between BSD 4.3 and SunOS. One calls it TTYSIZE and one call it WINSIZE. I believe SunOS doesn't do number 2. This problem can be solved by making the xterm send the signal itself. Steve