Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: hoffman@xdelta.enet.dec.com (Stephen Hoffman)
Subject: Re: vt220 terminal
Date: 12 Oct 1994 17:43:46 GMT	[thread overview]
Message-ID: <37h78i$pkb@jac.zko.dec.com> (raw)
In-Reply-To: CxJvrI.7sC@inter.NL.net


In article <CxJvrI.7sC@inter.NL.net>, 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.

   <ENQ> (<control/E>) 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: <CSI>0c 
   Response from terminal: <CSI>?<level>;<ps1>;<psn>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 <CSI>?63;1;2;3;4;6;7;8;9;13;15;16;18;19c
    A VT220 returns <CSI>?62;1;2;6;7;8;9c
    A VT240 returns <CSI>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



      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
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 [this message]
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