[comp.lang.asm370] type of terminal

VSLAWR@WEIZMANN.BITNET ("Lawrence S. Kalman") (02/14/91)

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

KDICKEY@CMSA.GMR.COM (02/15/91)

Under TSO I use the GTSIZE macro, which returns the terminal's screen and
line sizes. For a typewriter terminal, the screen size will be 0.

Keith Dickey
General Motors Research Labs