Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!snorkelwacker.mit.edu!shelby!agate!ucbvax!WEIZMANN.BITNET!VSLAWR From: VSLAWR@WEIZMANN.BITNET ("Lawrence S. Kalman") Newsgroups: comp.lang.asm370 Subject: Re: type of terminal Message-ID: <9102140715.AA03769@ucbvax.Berkeley.EDU> Date: 14 Feb 91 06:58:14 GMT References: Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: IBM 370 Assembly Programming Discussion List Distribution: inet Organization: The Internet Lines: 12 On Wed, 13 Feb 91 20:46:36 MEZ Martin Ahlborn said: >How can I easily test if a terminal is a typewriter terminal or not ~ The method depends upon under which operating system you are running. I note that DBSTU1 runs VM/XA SP 2.1. The preferred way under VM/XA is to use Diagnose X'210'. However, if your program has to be compatible with releases of VM/SP with or without HPO, you can use Diagnose X'24'. The specifications of how to code these instructions can be found in the CP Programming Services manual. In either case, the values of fields VDEVTYPC, VDEVTYPE, RDEVTYPC, and RDEVTYPE returned by the Diagnose are what you are looking for. - Lawrence