Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!hplabs!hpda!hpcuhb!hpindda!jack@hpindda.cup.hp.com From: jack@hpindda.cup.hp.com (Jack Repenning) Newsgroups: comp.sys.hp Subject: Re: Re: standards for windowing software? Message-ID: <4310144@hpindda.cup.hp.com> Date: 22 Oct 90 21:56:17 GMT References: <7370237@hpfcso.HP.COM> Organization: HP Information Networks, Cupertino, CA Lines: 41 In comp.sys.hp, rjn@hpfcso.HP.COM (Bob Niland) writes: > 1. 'untic hp > silvert' I can't believe this! Did I actually *catch* Bob Niland? It *can't* be - he knows *all* the right answers! Maybe I'm missing some context here or something (which is possible, since I don't have the base note).... Anyway, assuming I understand what's going on here, the procedure Bob specifies is perfectly correct (of course!), but a great deal more trouble than necessary, and a great deal less flexible than desirable. As he points out, sort of, there are environment variables defined to let vi or more (or pretty much any other program) know how big your window is at start up. If they're set, they override the entry in the termcap database, which means you don't need to play around with untic. So, how do you get them set? Well, the termulators (hpterm and xterm) set them when they start up, to whatever size the window starts at. But, if you change the window size after start up, they can't help you - environment variables are inherited on start-up, and your login shell is already running, and not listening to any new inputs of this sort. For this kind of situation, there's a command, resize(1) (/usr/bin/X11/resize), that prints out the commands needed by your login shell (taken from $SHELL) to set them. So the following works for most users ($SHELL==/bin/sh, /bin/csh, or /bin/ksh): eval `/usr/bin/X11/resize` Alias it to something easy to type, like 'rs', and do it whenever you resize a window, and your vi's and more's and everything else will be fine. Regards, Hewlett-Packard Jack Repenning Internet: jack@cup.hp.com 19420 Homesetead Road UUCP: [hplabs|hpfcse]!hptnjar!jack Cupertino, CA 95014 This response does not represent the official position of, or statement by, the Hewlett-Packard Company. The above data is provided for informational purposes only. It is supplied without warranty of any kind.