Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: kcb@post.its.mcw.edu (Kent C. Brodie)
Subject: Re: vt220 terminal
Date: 12 Oct 1994 12:43:41 -0500	[thread overview]
Message-ID: <37h78d$mip@post.its.mcw.edu> (raw)
In-Reply-To: CxJvrI.7sC@inter.NL.net

Jan Gerritse (gerritse@inter.NL.net) wrote:

: On a VT220 terminal, you can put an answer-back message in the set-up.
: Is there an escape sequence to read this message out ?

: I tried to find it in the manual, but without succes.

You need to send the terminal an ENQ character.

The following DCL command proc will work under VMS:

$!  DISPLAY_ANSWERBACK.COM
$!  Display the answerback code in the terminal you're using.
$!  Kent C. Brodie, Medical College of Wisconsin
$!
$ ENQ[0,8]=5                    !Symbol for an Escape
$ write sys$output ENQ
$ answerback = ""
$ read/time_out=2/prompt="(Inquiring terminal...)   " sys$command answerback
$ if answerback .eqs. ""
$ then
$   write sys$output "There does not appear to be an answerback for this"
$   write sys$output "device, OR the answerback does not end in C/R."
$ else
$   write sys$output "The answerback code is: ","""",answerback,""""
$ endif
$ exit

enjoy.  -kent

-- 
--------------
Kent C. Brodie - Sr. Systems/Network Manager		brodie@post.its.mcw.edu
Information Technology Systems
Medical College of Wisconsin				(414) 456-5080


  parent reply	other threads:[~1994-10-12 17:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-10-12  8:04 vt220 terminal Jan Gerritse
1994-10-12 16:50 ` John Wilson
1994-10-12 17:43 ` Kent C. Brodie [this message]
1994-10-17 21:49   ` Bernard Rushton
1994-10-18  9:15     ` Mark Van-Bellen, MIS, HNS UK, x211
1994-10-18 13:41     ` Kent C. Brodie
1994-10-12 17:43 ` Stephen Hoffman
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox