home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / att / 2098 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  1.9 KB

  1. Xref: sparky comp.sys.att:2098 comp.unix.solaris:191 comp.unix.sysv386:13696
  2. Newsgroups: comp.sys.att,comp.unix.solaris,comp.unix.sysv386
  3. Path: sparky!uunet!munnari.oz.au!uniwa!DIALix!zeus!peter
  4. From: peter@zeus.dialix.oz.au (Peter Wemm)
  5. Subject: Re: SVR4 - initializing TERM
  6. Message-ID: <Btno43.11A@zeus.dialix.oz.au>
  7. Organization: Karam Pty. Ltd. Perth, Australia
  8. References: <36133@arctic.nprdc.navy.mil> <1992Aug26.183822.14823@ilinx.wimsey.bc.ca>
  9. Date: Thu, 27 Aug 1992 18:45:38 GMT
  10. Lines: 33
  11.  
  12. brian@ilinx.wimsey.bc.ca (Brian J. Murrell") writes:
  13. >stanonik@nprdc.navy.mil (Ron Stanonik) writes:
  14. >>We'd like to initialize the TERM environment variable based on
  15. >>the tty port.  In bsd and sunos this can be set in /etc/ttys
  16. >>and /etc/ttytab, respectively.  In SVR4, however, ttymon
  17. >>doesn't seem to provide a way to do this.  The per-service
  18. >>config file didn't work; ie, pmadm -g -p porttag -s svctag -z conffile,
  19. >>where confile contains "assign TERM=vt100".  Any suggestions?
  20.  
  21. >there is a "ttymon script" file which gets executed upon startup of the 
  22. >service for a port.  There is a separtate file for each tty in the ttymon.
  23. >on our DG system the file is /etc/saf/<your ttymon>/<tty>.
  24. >ie /etc/saf/terminals/tty02
  25. >and contains the following line
  26. >assign TERM=wy60
  27.  
  28. What's wrong with /etc/ttytype? This is a small cut from our machine (Dell 2.1)
  29. wix-wh    term/01
  30. wix    term/09
  31. vt100    term/03m
  32. unknown pts/0
  33. unknown pts/1
  34.  
  35. login reads this and sets TERM for your login shell - if you didn't use
  36. /usr/bin/login, then you would have to make other arrangements like those
  37. above.
  38.  
  39. -Peter
  40. -- 
  41. Peter Wemm : peter@zeus.dialix.oz.au     If it's broke, fix it (The MS-DOS way)
  42. Work phone: +61-9-479-1855      If it aint broke, don't touch it (The Unix way)
  43. Fax: +61-9-479-1134     If we can't fix it, it ain't broke (Maintainer's Motto)
  44.   "Don't give me that intelligent life cr*p, find me something to blow up!"
  45.