Article View: comp.editors
Article #2458Re: How can I resize Elvis in a xterm window?
From: Stew Ellis
Date: Mon, 16 Nov 1992 21:24
Date: Mon, 16 Nov 1992 21:24
46 lines
2523 bytes
2523 bytes
bgitv@termo.unit.no (Baard Grimsmo) writes: >In article <1992Oct23.145352.6439@Celestial.COM> bill@Celestial.COM (Bill Campbell) writes: >>In <1992Oct21.131950.16914@ugle.unit.no> bgitv@termo.unit.no (Baard Grimsmo) writes: >> >>:Is it possible to make Elvis(-1.6) resizing itself into the new window >>:when the xterm is resized by pulling its corner with the mouse? >> >>:After resizing the window my Elvis does not know the available number >>:of lines, and I have to quit Elvis and restart after I have increased/ >>:decreased the number of lines. >> >>Generally you need to have something which does: >> eval `/usr/bin/X11/resize` >> >>This should set your TERMCAP, LINES, and COLUMNS environment >>variables appropriately for the current size of the xterm >>window. This must be done BEFORE starting elvis since it >>probably isn't aware of the X environment. >> >>:My vi-editor automatically changes and "fills" the new window size. >> >>Bill >>-- >This is actually only an answere to half of my question. >Using "resize" only helps if it is used before Elvis is started. >My problem is to make Elvis resize inside a xterm window if the window is >stretched or shrinked using the mouse after Elvis is started. >Is it possible or not? My standard vi editor on my SGI-Indigo does! >Thanks for the help anyway. >Bard.Grimsmo@termo.unit.no One of the first tests I perform on an editor before I install it in the the /usr/local/bin/ directory of our Sun is whether it behaves properly when an X term is resized. Jove, joe and emacs do. I have not tried any vi variants. It is a matter of testing for the signal TCGETWINSIZE (sp?). -- -- ___________________ R.Stewart(Stew) Ellis, Assoc.Prof., (Off)313-762-9765 / _____ ______ Humanities & Social Science, GMI Eng.& Mgmt. Inst. / / / / / / Flint, MI 48504 ellis@nova.gmi.edu /________/ / / / /
Technical Details
Message-ID:
<ellis.721949068@nova>Path:
arc1-ca.pugleaf.net!sparky!uunet!ukma!darwin.sura.net!spool.mu.edu!umn.edu!umeecs!nova!ellisReferences:
<1992Oct21.131950.16914@ugle.unit.no> <1992Oct23.145352.6439@Celestial.COM> <1992Oct28.073011.17480@ugle.unit.no>Show Full Headers
Complete Article Headers
Newsgroups: comp.editors Path: arc1-ca.pugleaf.net!sparky!uunet!ukma!darwin.sura.net!spool.mu.edu!umn.edu!umeecs!nova!ellis From: ellis@nova.gmi.edu (Stew Ellis) Subject: Re: How can I resize Elvis in a xterm window? Message-ID: <ellis.721949068@nova> Sender: news@zip.eecs.umich.edu (Mr. News) Organization: GMI Engineering&Management Institute, Flint, MI References: <1992Oct21.131950.16914@ugle.unit.no> <1992Oct23.145352.6439@Celestial.COM> <1992Oct28.073011.17480@ugle.unit.no> Date: Mon, 16 Nov 1992 21:24:28 GMT Lines: 46