Newsgroups: comp.sys.hp Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uupsi!eye!paul From: paul@eye.com (Paul B. Booth) Subject: Re: observations on the (9000/7x0 series) Message-ID: <1991Jun22.152549.23407@eye.com> Reply-To: paul@eye.com (Paul B. Booth) Organization: 3D/Eye Inc., Ithaca, NY References: <1474@theseas.ntua.gr> <1991Jun21.191139.11313@wlbr.imsd.contel.com> Date: Sat, 22 Jun 91 15:25:49 GMT In article <1991Jun21.191139.11313@wlbr.imsd.contel.com> mh@roger.imsd.contel.com (Mike Hoegeman) writes: > >> c. The vi and more don't behave so well when I work with more than >> 24x80 text (console, resizing xterms,etc. Neither eval resize >> does the trick). I hope that the solution is just a manual away. > >Yes i hated this too. it does not matter if there is some way to do it >in the manual though, it should just do it by default. it does not even >seem to understand anything but your standard terminal size. if you >bring up a terminal with 34 lines vi should use 43 lines. And no i do >not want to make a bunch of bogus terminal definitions for every size >terminal that I want. I will probably resort to porting elvis to it if >I have it long enough. Most X implementations don't do this kind of hand holding. The following lines in ~/.profile will do what you want under plain X11. Should work for vue too, if you have ~/.vueprofile call ~/.profile. # Set up the terminal case "${TERM}" in hpterm) #This is an X11 window; get its size stty hupcl erase "^H" kill "^U" intr "^C" eof "^D" susp "^Z" dsusp "^Y" eval `/usr/bin/X11/resize -u` ;; xterm) #This is an X11 window; get its size stty hupcl erase "^H" kill "^U" intr "^C" eof "^D" susp "^Z" dsusp "^Y" eval `/usr/bin/X11/resize -u` ;; esac -- 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