From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,1eec04886a82d86d X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-10-12 15:18:31 PST Path: bga.com!news.sprintlink.net!mhv.net!metro.atlanta.com!emory!europa.eng.gtefsd.com!howland.reston.ans.net!swrinde!elroy.jpl.nasa.gov!lll-winken.llnl.gov!decwrl!pa.dec.com!jac.zko.dec.com!xdelta.enet.dec.com!hoffman From: hoffman@xdelta.enet.dec.com (Stephen Hoffman) Newsgroups: comp.sys.dec Subject: Re: vt220 terminal Date: 12 Oct 1994 17:43:46 GMT Organization: Digital Equipment Corporation Distribution: world Message-ID: <37h78i$pkb@jac.zko.dec.com> References: Reply-To: hoffman@xdelta.enet.dec.com (Stephen Hoffman) NNTP-Posting-Host: XDELTA Keywords: vt220 X-Newsreader: mxrn 6.18-16 In article , gerritse@inter.NL.net (Jan Gerritse) writes: |> |>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. |>Who can help me out? The idea is that I want to check if a certain |>connection is displayed on VT220 or with a PC using kermit. () asks the terminal to send the contents of the answerback message. However, the appropriate sequence for your application is likely the Device Attributes (DA) Sequence -- its usually a far better approach to code to device capabilities rather than to a specific device type. And it's certainly better than using the answerback... DA example: 0c Response from terminal: ?;;c level is -- for instance -- 63 for level 3 (for a VT300 series terminal), ps1 through psn characters are from the following list: 1 132 columns 2 printer port 3 ReGIS graphics 4 Sixel Graphics 6 selective erase 7 soft character set 8 user-defined keys 9 national replacement character sets 13 local editing 15 technical character set 16 locator device port 18 windowing capability 19 dual sessions A VT300 returns ?63;1;2;3;4;6;7;8;9;13;15;16;18;19c A VT220 returns ?62;1;2;6;7;8;9c A VT240 returns 62;1;2;3;4;6;7;8;9c You get to figure out what kermit returns. If running OpenVMS, you can look in Sys$System:SMGTERMS.TXT for information on various escape and control sequences. And if you are running UNIX, try looking in /etc/termcap. ------------------------------ Opinionative ------------------------------- Stephen Hoffman, EMT-I hoffman@xdelta.enet.dec.com OpenVMS Engineering, Digital Equipment Corporation, Nashua NH