Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 exptools; site ho95e.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!whuxl!houxm!ho95e!wcs From: wcs@ho95e.UUCP (x0705) Newsgroups: net.unix Subject: Re: Setting TERM Message-ID: <198@ho95e.UUCP> Date: Fri, 30-Aug-85 19:13:52 EDT Article-I.D.: ho95e.198 Posted: Fri Aug 30 19:13:52 1985 Date-Received: Sat, 31-Aug-85 21:35:01 EDT References: <180@ukecc.UUCP> Organization: AT&T Bell Labs, Holmdel NJ Lines: 19 > 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