Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get answerback from VT or PC with emulator

SOLVED
Go to solution
Guillou_2
Frequent Advisor

How to get answerback from VT or PC with emulator

Hi,

I would like to be able to get the answerback implemented on a VT or on a PC with the emulator Relection. How can I do that?

Thanks in advance for your help

regards

Steph
7 REPLIES
Willem Grooters
Honored Contributor

Re: How to get answerback from VT or PC with emulator

On a VT - IIRC - enter SETUP key (F4), it's in there somewhere.
Reflextion may depend on the version. In version 6 (on the current desktop):
Choose SetUp, View settings. You get a box 'Reflextio Settings'. Choose "answerback" where you can enter the message. Options "Answerback concealed" and "auto-answerback" allow you to hide the message and to send it automatically.

(I haven't tried it but just looked into the possibilities)

Willem
Willem Grooters
OpenVMS Developer & System Manager
Willem Grooters
Honored Contributor

Re: How to get answerback from VT or PC with emulator

On a VT - IIRC - enter SETUP (F4), it's in there somewher.
Refelxtion may depend on the version. In version 6:
Choose SetUp, View settings. You get a box 'Reflextio Settings'. Choose "answerback" where you can enter the message. options "Answerback concealed" and "auto-answerback" allow you to hide the message and to send it automatically.

(I haven't tried it but just looked into the possibilities)

Willem
Willem Grooters
OpenVMS Developer & System Manager
Guillou_2
Frequent Advisor

Re: How to get answerback from VT or PC with emulator

Thanks for this reply but I would like to find a dcl procedure in order to get the string that is implemented in the answerback on VT or Pc with Reflection
Hein van den Heuvel
Honored Contributor
Solution

Re: How to get answerback from VT or PC with emulator



To get the answerback, you'll need to send a 'control-E' to the terminal, and read back the answer. For example in DCL:

$ e="e"
$ e[0,8]=5
$ read/prompt=&e sys$command test
$ show symbol test

This assumes that the answerback is terminated.
If it is not, it get's more tricky and you may need to use a timeout on a QIO (can no longer use DCL, as the read will fail).
Or you can follow the answerback question with an other escape-sequence-answer question such that the answer will terminate the read.

Something like:

$control_e[0,8] = 5
$csi[0,8] = 155
$write sys$output control_e,csi,"5n" !Ask for answerback + indentification
$read/prompt="" sys$command test
$ read sys$command test

Btw, a similar technique can be used to read things like terminal Id and cursor position.
Example below. But reall you should use SMG or a direct call to SYS$QIOW and examine the terminator to do that properly.

What language/tool/script did you intent to use?

hth,
Hein,

$csi[0,8] = 155
$set term/noecho/noesc !Any escape will become terminator.
$write sys$output csi,"5n",csi,"5n" !Ask identification twice
$read/prompt="" sys$command escape !Terminate with escape part of first
$set term/esc !Full escape sequences are terminators
$read/prompt="" sys$command ident !Read body of first escape sequence
$ ! terminated by second escape sequence.
$set term/echo !Reset terminal.
$write sys$output ident


Ian Miller.
Honored Contributor

Re: How to get answerback from VT or PC with emulator

VT escape sequences are documented here
http://www.vt100.net
____________________
Purely Personal Opinion
Antoniov.
Honored Contributor

Re: How to get answerback from VT or PC with emulator

Hi Steph,
Hein posted the best procedure to get answerback.
Why would you read the answerback?
In past I used answerback to identify workstation; if you need of this, remember VT can be moved. It's better read TT_ACCPORNAM of terminal line.
If you need something like password don't forget set concealed answerback on terminal.

Antonio Vigliotti
Antonio Maria Vigliotti
Guillou_2
Frequent Advisor

Re: How to get answerback from VT or PC with emulator

Thanks all for your help

We want to be able to get answerback from VT/PC in order to use it as a test in a dcl command procedure

Steph