I misunderstood the question, here's the real answer:
Don't look for a predefined variable, but rather ask the terminal
emulator directly.
Here's a little script written by Jeff Kell, I think ;-)
setvar utc_reflect_serial "X"
setjcw UTCReflection=0
# ** If origin is a session (VT or otherwise) we will setup
# ** some Reflection and local parameters. If this is a VT
# ** session initiated by a job, we DON'T want to since the
# ** status read will swallow the job's next $STDIN record.
# ** Only way to test this is trying to set hptypeahead true
# ** which fails if the origin is a batch job
setvar hpmsgfence 2
setvar hpcierr 0
setvar savetype hptypeahead
continue
setvar hptypeahead true
if hpinteractive and hpcierr = 0 then
set echo=off
pause 1
setvar hptypeahead savetype
continue
input utc_reflect_serial;prompt="![chr(27)+"*s12347^"]";wait=2
setvar hpmsgfence 0
set echo=on
if lft(utc_reflect_serial,1) = "W"
setjcw UTCReflection=1
elseif lft(utc_reflect_serial,1) = "M"
setjcw UTCReflection=2
elseif lft(utc_reflect_serial,1) = "I"
setjcw UTCReflection=3
endif
if UTCReflection > 0
setjcw xdstermtype 1
endif
else
setvar hpmsgfence 0
endif
Setvar emulator Str('!UTC_REFLECT_SERIAL',1,1)
--
Michael Anderson
Spring Independent School District
16717 Ella Boulevard
Houston, Texas 77090-4299
office: 281.586.1105
fax: 281.586.1187
-
>>> "Johnson, Tracy" <[log in to unmask]> 06/06/02 10:54AM >>>
When using Reflection VT-MGR or WS92 NSVT protocol,
you get a variable set for HPVT_CLIENT_VENDOR.
Not so when you are using the same product with
Telnet protocol.
Has anyone on this list found a way for the host
to respond with which emulator product you are using
when using Telnet?
BT
#0001
Tracy Johnson
MSI Schaevitz Sensors
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|