Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!hp-pcd!hpfcso!hpfcdc!rsh From: rsh@hpfcdc.HP.COM (Scott Holbrook) Newsgroups: comp.sys.hp Subject: Re: Determining terminal types Message-ID: <5570660@hpfcdc.HP.COM> Date: 12 Jun 91 21:16:30 GMT References: <1965@eastman.UUCP> Organization: HP Fort Collins, Co. Lines: 16 > We have an application which might be accessed either by VT100 > terminal users or HP terminal users. We would like to be able > to automatically differentiate the terminal types without user > intervention. We can send a HP terminal ID escape sequence out > the tty device and get a good answer back from HP terminals, but > obviously non-hp terminals wont respond. Is there a general > purpose method to do that without prompting the user with tset > or hard setting the id's in the /etc/ttytype file ? As of 8.0, HP-UX comes standard with a program, ttytype(1), that can automatically identify HP, ANSI and Wyse terminals. It even will set LINES, COLUMNS and ERASE for you with the right options. See the man page that comes with the 8.0 release for more information. Scott Holbrook / rsh@hpfcla HP-UX kernel