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