From: Bob Harris <harris@zk3.dec.com>
To: "Ray T." <lists@aik.tec.sc.us>
Subject: Re: Set Term/Inquire in Tru64?
Date: 2000/03/15 [thread overview]
Message-ID: <150320000833386250%harris@zk3.dec.com> (raw)
In-Reply-To: 38CEFA6A.8D63BE96@aik.tec.sc.us
[[ 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.
<lists@aik.tec.sc.us> 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.
prev parent reply other threads:[~2000-03-15 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-14 5:00 Set Term/Inquire in Tru64? Ray T.
2000-03-15 5:00 ` Bob Harris [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox