Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* vt220 terminal
@ 1994-10-12  8:04 Jan Gerritse
  1994-10-12 16:50 ` John Wilson
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Jan Gerritse @ 1994-10-12  8:04 UTC (permalink / raw)



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.

Thanks in advance!!


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: vt220 terminal
  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-12 17:43 ` Stephen Hoffman
  2 siblings, 0 replies; 7+ messages in thread
From: John Wilson @ 1994-10-12 16:50 UTC (permalink / raw)


In article <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 ?

^E (005 ASCII that is, or ENQ)

Make sure your OS doesn't turn ^Es into <circumflex> <E> on output.
On our old RSTS system we used to send CHR$(133) with VT100s to fool
the OS, that ought to work with a 220 in 7-bit mode.  Note that there's
no guarantee that the answerback is any particular length, or that
it ends in CR, or even that there is one at all, so you'll have to
set a timeout and do a delimiterless read if you want to be bulletproof.

John Wilson


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: vt220 terminal
  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-12 17:43 ` Stephen Hoffman
  2 siblings, 1 reply; 7+ messages in thread
From: Kent C. Brodie @ 1994-10-12 17:43 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: vt220 terminal
  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-12 17:43 ` Stephen Hoffman
  2 siblings, 0 replies; 7+ messages in thread
From: Stephen Hoffman @ 1994-10-12 17:43 UTC (permalink / raw)



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



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: vt220 terminal
  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
  0 siblings, 2 replies; 7+ messages in thread
From: Bernard Rushton @ 1994-10-17 21:49 UTC (permalink / raw)


> 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.
> 

Also, if I'm not mistaken (though I sometimes am :-) ), pressing
Ctrl-Break will enter the Answerback message into SYS$OUTPUT. This is
sometimes used as a cheat to avoid typing long passwords. I've done it
myself (ahem) :-)

Personally, I'd favour Kent's approach on an unknown terminal. After all,
some generous soul might have set the a/back to DEL [...]*.*;*<CR> :-)

-- 
Bernard Rushton                     | "Any sufficiently advanced technology
Billericay, Essex, UK               |  is indistinguishable from magic".
e-mail: bernard@foobar.demon.co.uk  |                   - Arthur C. Clarke
------------------------------------+---------------------------------------


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: vt220 terminal
  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
  1 sibling, 0 replies; 7+ messages in thread
From: Mark Van-Bellen, MIS, HNS UK, x211 @ 1994-10-18  9:15 UTC (permalink / raw)


To read your answerback, use the following command file
(this example actually sets your process name to a shortened version  of your
  answerback - but can be modified for your own needs)

$ans[0,8]=5
$set terminal/noecho
$read sys$command answerback /prompt="''ans'" /timeout=2/error=noanswerback
$count=0
$on error then goto plus
$plus:
$count=count+1
$pnam="''count' ''answerback'"
$pnam=f$extract(0,15,pnam)
$set mess/notext/nofac/noident/nosev
$set process/name="''pnam'"
$noanswerback:
$set mess/text/fac/ident/sev
$set terminal/echo

'ope this 'elps lad!

Mark

In article <782430551snz@foobar.demon.co.uk>, bernard@foobar.demon.co.uk (Bernard Rushton) writes:
>> 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.
>> 
>
>Also, if I'm not mistaken (though I sometimes am :-) ), pressing
>Ctrl-Break will enter the Answerback message into SYS$OUTPUT. This is
>sometimes used as a cheat to avoid typing long passwords. I've done it
>myself (ahem) :-)
>
>Personally, I'd favour Kent's approach on an unknown terminal. After all,
>some generous soul might have set the a/back to DEL [...]*.*;*<CR> :-)
>
>-- 
>Bernard Rushton                     | "Any sufficiently advanced technology
>Billericay, Essex, UK               |  is indistinguishable from magic".
>e-mail: bernard@foobar.demon.co.uk  |                   - Arthur C. Clarke
>------------------------------------+---------------------------------------
+----------------------------------------------------------+-------------------+
| Mark Van-Bellen               E-Mails MVANBELLEN@HNS.COM |                   |
| Systems Engineer            +----------------------------+                   |
| Hughes Network Systems Ltd. | Telephone : +44 908 221122 extension 211       |
| Milton Keynes, England.     | Fax       : +44 908 221127                     |
+-----------------------------+------------------------------------------------+
|   The three faithful things in life are money, a dog, and an old woman.      |
+------------------------------------------------------------------------------+


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: vt220 terminal
  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
  1 sibling, 0 replies; 7+ messages in thread
From: Kent C. Brodie @ 1994-10-18 13:41 UTC (permalink / raw)


Bernard Rushton (bernard@foobar.demon.co.uk) wrote:

: Also, if I'm not mistaken (though I sometimes am :-) ), pressing
: Ctrl-Break will enter the Answerback message into SYS$OUTPUT. This is
: sometimes used as a cheat to avoid typing long passwords. I've done it
: myself (ahem) :-)

: Personally, I'd favour Kent's approach on an unknown terminal. After all,
: some generous soul might have set the a/back to DEL [...]*.*;*<CR> :-)

Hey, now THERE's an idea.....

by the way, not *ALL* dec terminals do control chcracters in the answerback,
most notable, the VXT2000 series.   The problem with windows-based
terminals is, when setting up options (like answerback), <CR> is tied
to the "[OK]" part of the window options, and NOT the text being 
answered.

After bitching about this nonstop, DEC finally came up with
a solution, involving "#" and digits.  Enter "#" and a hex code
to generate things like <CR>, <LF>, etc.

(MANY vendors assume the answerback from the terminal ends in CR!)

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1994-10-18 13:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox