home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / vms / 20356 < prev    next >
Encoding:
Internet Message Format  |  1993-01-05  |  2.2 KB

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