setting TERM on System Vr2

Andrew T. Schnable schnable at ihuxo.UUCP
Sun Feb 17 02:51:29 AEST 1985


> > Anyone know of a good method to keep TERM information for System V? 
> > I know that you can type TERM=xxx when typing your login 
> > name, but we have a lot of hardwired terminals, and it would be 
> > more convenient to have that terminal types kept in a file and 
> > have it be set automatically.  
> 
> Step 1 - rip "login" so that it doesn't destroy the environment it's
> given, but adds to it.
> 
> Step 2 - make your "inittab" lines look like:
> 
> 	hb::respawn:env TERM=vt100 /etc/getty ttyhb 9600	# Console VT100
> ...
Or put a test in the .profile 

if [ `tty` = "/dev/tty??" ]
then
	TERM=5620	# or whatever
fi

andy ihuxo!schnable



More information about the Comp.unix.wizards mailing list