From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,141939ce96f3a64b X-Google-Attributes: gidfee84,public From: Bob Harris Subject: Re: Set Term/Inquire in Tru64? Date: 2000/03/15 Message-ID: <150320000833386250%harris@zk3.dec.com>#1/1 X-Deja-AN: 597792673 Content-Transfer-Encoding: 8bit References: <38CEFA6A.8D63BE96@aik.tec.sc.us> To: "Ray T." Posted-And-Mailed: yes Content-Type: text/plain; charset=ISO-8859-1 Organization: Digital Equipment Corporation, Palo Alto, CA, USA Mime-Version: 1.0 User-Agent: YA-NewsWatcher/4.2.4 Newsgroups: comp.unix.osf.osf1 [[ This message was both posted and mailed: see the "To," "Cc," and "Newsgroups" headers for details. ]] In article <38CEFA6A.8D63BE96@aik.tec.sc.us>, Ray T. wrote: >Is there something like the VMS - >Set Term/Inquire > >So that instead of asking the user what terminal they have, >I can determine it automatically. Here is what I use in my .login and .profile scripts: stty dec new tset -I -Q /usr/bin/X11/resize >/dev/null The resize command is the one that deals with setting the rows and columns correctly. Note: DO NOT type anything until after the resize command has finished running. It works by sending escape sequences to the terminal asking for position information after positioning the cursor at various places on the screen via relative positioning commands. If you start typing ahead, it will screw up the information returned to the resize command. I usually echo something to the screen to indicate that the resize is done and it is safe to begin typing ahead.