home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!sol.ctr.columbia.edu!ursa!RABINOWITZ@VAX5.BEAR.COM
- From: RABINOWITZ@VAX5.BEAR.COM (Ari)
- Newsgroups: comp.os.vms
- Subject: SET TERM/INQ (Was Re: TT_AccPorNam field remains null)
- Message-ID: <29834@ursa.bear.com>
- Date: 5 Jan 93 15:35:08 GMT
- References: <930104133534.21c002ab@LUDWIG.CTD.ORNL.GOV>
- Sender: news@bear.com
- Organization: BEAR STEARNS & CO.
- Lines: 36
- X-News-Reader: VMS NEWS 1.24
- In-Reply-To: LPZ@LUDWIG.CTD.ORNL.GOV's message of 4 Jan 93 18:35:34 GMT
-
- In <930104133534.21c002ab@LUDWIG.CTD.ORNL.GOV> LPZ@LUDWIG.CTD.ORNL.GOV writes:
-
- > This is all very nice, but the point is, if I have an xterm, and I have it set
- > to a different size than 24x80, I don't want you changing it to 24x80 just
- > because you never used an xterminal or a workstation and don't understand what
- > set term/inquire does. I would want to shoot you as well, after about the 23rd
- > time. You can detect the xterminal unless it is used to set host or telnet to
- > you, so the short answer is DON'T put Set Term/Inquire in the system login.
-
- Actually a SET HOST will usually carry the terminal type across to the
- remote system so even there you don't need a SET TERM/INQ.
-
- My current attempt at avoiding the problem of SET TERM/INQ shrinking
- DECterms is to not do a SET TERM/INQ at all. In our shop we don't have
- any VT52's so a VT100 is the lowest common denominator of terminal type
- that we use (even xterm on a Un*x workstation and most PC terminal
- emulators do VT100 reasonably well).
-
- What I do is to set the terminal to VT100 if we don't already know what
- type of terminal it is. DEC recommended in the release notes for
- DECWindows (in VMS 5.2, VMS 5.3, and VMS 5.4 release notes) that SET
- TERM/INQUIRE not be executed for WT, TW, FT and RT type devices. I have
- extended that to set the terminal type to VT100 if the terminal type is
- unknown. I use the following code in LOGIN.COM for my users who need
- it:
-
- $ If F$Getdvi("TT:","DEVTYPE") .Eq. 0 Then $Set Term TT/Device=VT100
-
- I'm sure someone will come up with a case where this may cause problems,
- but I haven't seen it yet.
-
- Ari
-
- Ari Rabinowitz rabinowitz@bear.com for VMS and personal mail
- WorkStation Administrator ari@bear.com for sun/HP Un*x mail
- Bear Stearns
-