From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,363660cc0a7a0beb,start X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,1eec04886a82d86d X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-10-13 10:42:40 PST Path: bga.com!news.sprintlink.net!sundog.tiac.net!wizard.pn.com!Germany.EU.net!EU.net!howland.reston.ans.net!news.moneng.mei.com!uwm.edu!post.its.mcw.edu!not-for-mail From: kcb@post.its.mcw.edu (Kent C. Brodie) Newsgroups: comp.sys.dec,comp.os.vms Subject: Re: vt220 terminal Date: 12 Oct 1994 12:43:41 -0500 Organization: Medical College of Wisconsin; Milwaukee Wisconsin Message-ID: <37h78d$mip@post.its.mcw.edu> References: NNTP-Posting-Host: post.its.mcw.edu X-Newsreader: TIN [version 1.2 PL2] Xref: bga.com comp.sys.dec:6390 comp.os.vms:19612 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