Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!rpi!uupsi!eye!paul From: paul@eye.com (Paul B. Booth) Newsgroups: comp.sys.hp Subject: Re: standards for windowing software? Message-ID: <1990Oct23.162817.829@eye.com> Date: 23 Oct 90 16:28:17 GMT References: <1990Oct20.123109.7287@cs.dal.ca> <101950150@hpcvlx.cv.hp.com> Reply-To: paul@eye.com (Paul B. Booth) Organization: 3D/Eye Inc., Ithaca, NY Lines: 30 In article <101950150@hpcvlx.cv.hp.com> bcripe@hpcvlx.cv.hp.com (Brian E. Cripe) writes: >> I'm in the market for a Unix workstation and have been looking at the HP >> 400 series machines. Working with VUE I discovered that programs like >> vi and more assume a 24x80 window and won't adjust to work with any >> other size (for example, with a longer window they use only the top 24 >> lines). I commented that this seemed like a pretty serious shortcoming. > >If the software you are running understands the LINES and COLUMNS environment >variable (I believe both vi and more do), then it is simple. After >altering the size of your hpterm window you need to use the "resize" >command to reset LINES and COLUMNS to their new values. Do a "man resize" >for details on how to use resize. > Resizing can also be done semi-automatically with something like this in each user's .kshrc file (modify as needed for /bin/sh, /bin/csh): function vi { eval `/usr/bin/X11/resize -u 2>/dev/null`; /usr/bin/vi "$@" } Hardly perfect (takes a little longer to startup & you need a function for each command or variant (vi,view,more, etc) ), but it does ensure that the window and vi are in sync whenever you start vi. -- Paul B. Booth (paul@eye.com) (...!hplabs!hpfcla!eye!paul) ------------------------------------------------------------------------------- 3D/EYE, Inc., 2359 N. Triphammer Rd., Ithaca, NY 14850 voice: (607)257-1381 fax: (607)257-7335