The text of a manual · part 22 of 37
TCL Terminal Control Language Programmer's Manual, pages 211 to 220
Pages 211 to 220 of 362
The original document is the PDF (13 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the VeriFone Tranz 330
Page 211
V - Display Buffer
Description: Makes the terminal display the contents of a specified buffer.
Note: Pressing [CLEAR] while buffer contents are displayed aborts the control string and returns the terminal to the idle state.
Special Consideration: The control character 26 decimal (1A hex or ‘Z) is interpreted by the display control driver in the XL/TRANZ as a ’clear display’ command. If the "V" command is used to display a buffer that contains this control character, only the information following the 1Ah will be visible on the display. For example, if "V" is used to display a buffer containing "123"1Ah"456", only "456" will appear on the display.
See Also: | Command Description Display Commands: F Display Fixed Prompt *J Justify Display P Display Custom Prompt Buffer Commands: B Select Buffers D Delete Characters from Buffer G Clear Destination H Search for String +J Buffer Modification oO Move Extraction Pointer +S Get Buffer Size U Copy Buffer to Memory Location Z Pad Destination Buffer
Category: Outputs and Data Display
Buffer Status: Source Buffer Destination Buffer No change No change; buffer read/updated Terminals Supported: Terminal Special Conditions PNC 330/340 None XL [BACKSPACE] returns terminal to idle state in version 2.60 TRANZ 330 [BACKSPACE] returns terminal to idle state in version 3.10 TRANZ 340 [BACKSPACE] returns terminal to idle state in version 2.30 TRANZ 380 None
5-147
Page 212
5-148
Command Format:
Parameters:
V - Display Buffer
Default Parameter Value Description b ¢) Optional; the buffer to be displayed;
default is current destination buffer; other options include:
Q current destination buffer
1 Buffer #1 - "Transmit Buffer’
2 Buffer #2 - "Receive Buffer"
3 Buffer #3
4 Buffer #4
5 Buffer #5 a 0 Optional; the options are:
0 Display buffer contents, allow scrolling and wait for [ENTER], then execute next command in the control string.
1 Display buffer, allow scrolling and multi-host change
Note: To perform the multiple-transactions function, each transaction key must be assigned to the same host and have the same multi-transaction group code in location X12 (X = number on the transaction key). For example, for transaction keys 4 and 7, memory locations 412 and 712 must have the same value. If they don’t have the same value, the terminal will dial the host for each transaction rather than performing both transactions on the same dial up.
Caution: Do not use the V.1 command in location X10 (X = number on the transaction key). This will result in an execution error.
2 Display buffer; wait for keypress or "t' half-seconds, specified in parameter 3; then execute next command in the control string t 0 Optional; number of half-seconds to display the buffer contents before executing the next command; this parameter is only valid when the "a" parameter is equal to 2
Page 213
V - Display Buffer
Example: Command Operation
; This routine prompts for an [ENTER] key to continue
190$ B.4 ; Select destination buffer G ; Clear destination buffer
R’ENTER=CONTINUE’
; Append "ENTER=CONTINUE" to buffer V ; Display buffer and wait until the [ENTER] key ; or [CLEAR] key is pressed ; This next routine assumes that transaction 5 and transaction ; 7 can be done in the same phone call (multi-transaction) ; Set 512 = 712 = 1 511 = V2.1 ; Display the destination buffer ; User will scroll or select transaction 7 as the ; next transaction.
5-149
Page 214
5 - 150
Description:
See Also:
Category:
Buffer Status:
*V - Append Telephone Status Code
The "*V" command appends a code, which identifies the status of the telephone, to the destination buffer. This command is used when writing custom communication routines and for determining the status of the telephone line connected to the terminal. The appended code depends on whether or not the concurrent dialer has been started with an "S" command.
Status codes are described below. Codes 1, 2, 6, 7, and 8 are dialer status.
Code Description
1 The phone is off hook.
2 The phone is off hook and carrier is present.
3 The phone is on hook and a phone line is present.
4 No phone line is present or the parallel phone is off hook. 5 The phone is on hook and there is an incoming ring. 6 The phone is on hook, waiting for line
7 The phone is off hook, dialing
8 The phone is off hook, waiting for answer
Note: Time required to return the status code will vary from one code to the next. This command as described is applicable only for dial terminals. See "*V Append LAN Status Code” for poll terminals.
Command Description +D Tone Dial +F Response ACK +l Send Over Modem +K Carrier Control +M Set Modem Parameters *P Specify Characters *R Specify Device, Speed and Format S Dial Phone Number *T Specify Timeouts +X Transmit Data to Network +Y Receive Data from Network
Buffer Operations
Source Buffer Destination Buffer
No change Buffer updated
Page 215
*V - Append Telephone Status Code
Terminals Supported: Terminal Special Conditions PNC 330 None PNC 340 Not available - see page 5-152 XL Return codes 6, 7, and 8 not implemented TRANZ 330 None TRANZ 330 (202) Not available TRANZ 340 Not available - see page 5-152 TRANZ 380 None
Command Format:
Default Parameters: Parameter Value Description
(there are no parameters for the *V command)
Example: Command Operation
; Wait until the phone goes on hook. The following example demonstrates ; the use of the "*V" command:
B3.3 ; Select buffer 3 for both the source and ; destination buffer G ; Clear the destination buffer "VV ; Get phone status and append it to the ; destination buffer 1-3.2.’3’ ; Skip backwards if the status code is not "3"
; (phone on hook with no incoming ring)
5-151
Page 216
*V - Append LAN Status Code
Description: | The "*V" command appends a code, which identifies the status of the LAN, to the destination buffer and can be used anytime during a transaction. The Status codes are described below:
Code Description
0 Okay; terminal is on-line
1 Invalid poll ID
2 Too many LAN errors due to incompatible baud rate or wiring error
3 No polls received 4 LAN disconnected See Also: Command Description +1 LAN Send and Receive *T Specify Communications Timeout
Category: | Communications Control
Buffer Status: | Source Buffer Destination Buffer
No change Buffer updated
Terminals Supported: Terminal Special Conditions PNC 330 Not available - see command, page 5-150 PNC 340 None XL Not available - see command, page 5-150 TRANZ 330 Not available - see command, page 5-150 TRANZ 330 (202) Not available TRANZ 340 None TRANZ 380 Not available
Command Format:
5-152
Page 217
*V - Append LAN Status Code
Default Parameters: Parameter Value Description
(there are no parameters for the *V command)
Example: Command Operation
; Wait until the LAN status is okay. The following ; example demonstrates the use of the "*V" command:
B3.3 ; Select buffer 3 for both the source and destination ; buffer
G ; Clear the destination buffer
"Vv ; Get LAN status and append it to the destination ; buffer
I-3.2.'0' ; Skip backwards if the status code is not “O"
5-153
Page 218
5-154
Description:
See Also:
Category:
Buffer Status:
Terminals Supported:
Command Format:
Parameters:
+V - Append Signon Message to Buffer
Appends the firmware release version (signon message), the EPROM Permanent Terminal ID Number, or the terminal RAM configuration to the destination buffer.
Command Description A Append from Memory Location J Append Clock Data Q Append Write Control Chaacter +Q Append Variable to Buffer R Append Constant X Append from Source Y Append Non-Blank Memory Location
Buffer Operations
Source Buffer
Destination Buffer
No change Buffer updated
Terminal Special Conditions
PNC 330/340 None
XL Available on versions 2.4 or greater TRANZ 330 Available on versions 1.4 or greater TRANZ 330 (202) Available on versions 2.1 or greater TRANZ 340 Available on versions 2.1 or greater TRANZ 380 Available on versions 1.10 or greater
Default Parameter Value Description a 0 Select desired option.
0 = Signon message
TRANZ 380 only:
1 = EPROM Permanent Terminal ID Number 2 = RAM configuration in Kbytes. This number appears as "64" or 128" in the destination buffer.
Note: Not all versions of the TRANZ 380 support a Permanent Terminal ID Number, nor do all countries require it.
Page 219
+V - Append Signon Message to Buffer
Examples: Command Operation B.3 ; Select buffer G ; Clear buffer +V ; Append to destination buffer V.2.2 ; Display message and continue
5 - 155
Page 220
W - Wait Until Print Buffer is Empty
Description: | The "W" command causes the terminal to wait until all the characters sent to the printer are printed before executing the next command in the control string. The printer buffer length is 250 characters.
See Also: Command Description Printing: N Send Buffer to Printer Wait Commands: +P Timeout in Milliseconds *W General Wait
Category: Process and Flow Control
Buffer Status: | Source Buffer Destination Buffer No change No change Terminals Supported: Terminal Special Conditions PNC 330/340 None XL W1 and W2 available on versions 2.10 or greater TRANZ 330 (202) “s" parameter available on versions 2.1 or greater TRANZ 340 “s" parameter available on versions 2.1 or greater TRANZ 380 None
Command Format:
5 - 156