Setting TERM

x0705 wcs at ho95e.UUCP
Sat Aug 31 09:13:52 AEST 1985


> 	Does SysV have anything along the lines of Berkeley's
> /etc/ttytype database for specifing terminal types? Or should
> we start re-inventing the wheel for SysV?
> Edward C. Bennett
> UUCP: ihnp4!cbosgd!ukma!ukecc!edward

It's not like it's a tough wheel to reinvent; you have a file /etc/ttys
containing two columns (device name and terminal type), and a one line shell:
	sed -n "/`tty`	/s///p" /etc/ttys
		      ^TAB

A more fun approach is to get ahold of "ttytype", a program that tries to guess
what kind of terminal you have by throwing escape sequences at it until the
terminal responds with something recognizable.  At AT&T Bell Labs, it's
provided under the "exptools" internal software distribution system; exptools
programs are often sold to the public via the AT&T Toolchest, or alternatively
are System-V ports of Berkeley UNIX programs.
-- 
## Bill Stewart, AT&T Bell Labs, Holmdel NJ 1-201-949-0705 ihnp4!ho95c!wcs



More information about the Comp.unix mailing list