ADDS Programming. AccuSoft 7
विज्ञापन
विज्ञापन
232 AccuTerm 7 Help
3.2.2
Wyse Programming Notes
† Functions tagged with the single-dagger symbol are only valid in Wyse 50 or Wyse 60 emulation.
‡ Functions tagged with the double-dagger symbol are only valid in Viewpoint Enhanced emulation.
3.3
ADDS Programming
This topic describes the command sequences for programming the ADDS Viewpoint A2, Viewpoint 60 and Procomm VP60 terminal emulations. These emulations use a common command set with a few differences. The differences are noted.
Operating Modes
ESC
B
Status line off.
ESC
b
Status line on.
ESC
D
Screen display off.
ESC
d
ETB
Screen display on.
Turns off the cursor.
CAN
Turns on the cursor.
GS
ESC
% ! 0
Enters Tektronix 4100 graphics mode.
CAN
If the graphics mode is enabled, this command puts the terminal in the Tektronix emulation mode. If the graphics mode is disabled, this command is ignored.
Exits from the Tektronix graphics emulation mode.
Cursor Positioning
ACK
Cursor right. If the cursor is on the last column of the line, the cursor will wrap to the next line, possibly scrolling the screen up.
BS
or
NAK
Cursor left. If the cursor is at the beginning of the line, it is moved up to the last column of
Copyright 2010-2013 Schellenbach & Assoc., Inc.
AccuTerm 7 Reference 233
the previous line. If the cursor is at the home position, it is moved to the lower right hand corner of the screen.
LF
Cursor down. If the cursor is on the last line of the screen and the "no scroll" mode is turned off, the screen will scroll up one line. Otherwise, the cursor will move to the top line of the screen.
SUB
Cursor up. If the cursor is at the top row, it is moved to the bottom row.
CR
Moves the cursor to the first column (column zero) of the current row.
VT
r
Moves cursor to row r, where r is a valid row code from the
Viewpoint Cursor Address Table
.
DLE c
Moves the cursor to column c where c is a valid column in the from the
.
ESC
Y
r c
Moves the cursor to row r and column c where r and c are single byte cursor address codes from the
. Note that this command cannot position the cursor past column 95.
Erasing and Editing
FF
Clears the screen and returns the cursor to the home position (upper left corner of the screen). Turns off the protected mode.
ESC
K
Clears from the cursor position to the end of the current line.
ESC
k
Clears from the cursor position to the end of the screen.
ESC
M
Insert line. A blank line is inserted before the current line. The current line and all lines below are moved down one row. The bottom line of the screen is lost. The cursor is moved to the left most column of the inserted line.
ESC
F
Insert character. A blank is inserted at the current cursor position. All characters from the cursor position to the right are moved right one column.
ESC
l
Delete line. The current line is deleted. All lines below the current line are moved up one position. The bottom line is blank. The cursor is moved to the left most column.
Copyright 2010-2013 Schellenbach & Assoc., Inc.
234 AccuTerm 7 Help
ESC
E
Delete character. The character at the current cursor position is deleted. All characters to the right of the cursor are moved left one column and a blank is placed on the last column of the line.
Video Attributes
The Viewpoint A2, Viewpoint 60 and Procomm VP60 have different ways of programming video attributes.
The ADDS Viewpoint A2 terminal supports video attributes through the use of "tagged" characters.
When a character is received from the host, it is either "tagged" or "normal". Tagged characters are displayed with the currently assigned tagged video attribute. Only one attribute may be displayed on the screen at one time - all characters which are "tagged" are displayed using the current tag attribute.
Other emulations, including Viewpoint A2 Enhanced and ADDS 4000, allow multiple attributes to be displayed simultaneously.
Programming video attributes involves two separate steps. First, the tag attribute must be assigned.
Next, in order to display characters in the assigned tag attribute, a "start tag attribute" code must be sent. To send characters in the normal attribute, an "end tag attribute" code must be sent. These two steps are independent and can be executed in either order.
The ADDS Viewpoint 60 (and Procomm VP60) emulations use the same escape sequence as the
Viewpoint A2 but it is interpreted differently. Under ADDS Viewpoint 60 mode, the attribute takes up a space and changes all following characters to the end of the screen or until another attribute character is encountered. It works similar to the Wyse 50 video attributes. Under Procomm VP60, multiple visual attributes may be displayed at the same time, but the attribute character does not use a space on the screen, and does not affect any previously displayed characters. It works similar to the Wyse 60 video attributes.
SO
Start tagged attribute. All characters received after this code are displayed with the currently assigned tagged attribute. If the tagged attribute is changed, the attribute of the displayed characters also changes.
SI
End tagged attribute. All characters received after this code are displayed with the normal video attribute.
ESC
0
a
ADDS Viewpoint A2: Assign visual attribute. This command sets the current visual attribute. All characters which are “tagged” are displayed on this attribute. The attribute is specified by the attribute code a from the
Viewpoint Attribute Code Table .
ADDS Viewpoint 60: Assign visual attribute. This command is used to start a specific attribute. This command changes all characters from the current position until the end of the screen or until another attribute code character is encountered. The attribute uses a screen position. The attribute is specified by the attribute code a from the
.
Procomm VP60: Assign visual attribute. This command is used to start a specific attribute. The attribute does not use a screen position. All characters output after this
Copyright 2010-2013 Schellenbach & Assoc., Inc.
AccuTerm 7 Reference 235
command are displayed in the specified attribute. The attribute code is specified by the attribute code a from the
Viewpoint Attribute Code Table
.
Line Graphics
ESC
1
Turn on line graphics mode. All characters received while the line graphics mode is on are interpreted as graphics characters according to the
Viewpoint 60 Graphic Character Table .
ESC
2
Turn off line graphics mode.
Printer Control
DC2
Auto (copy) print mode. Characters are displayed and printed. This command will be ignored if the current slave printer selection is "None".
DC4
Cancel auto or transparent print mode. Note: This command will not turn the printer off if it
was turned on by the Viewpoint Enhanced transparent print or ANSI print commands.
ESC
3
Transparent print mode. Characters are printed, but not displayed.
ESC
4
Cancel transparent print mode.
ESC
[ ? 5 i
Transparent print mode (ANSI). Characters are printed, but not displayed. When AccuTerm receives this command, it goes into transparent print mode until it receives the ANSI print off sequence below. This command is useful for printing graphics data to the printer. Since
AccuTerm requires the specific ANSI cancel command below to exit transparent print mode, there is less chance of a control character interrupting the graphic printing.
ESC
[ ? 4 i
Cancel transparent print mode (ANSI).
3.3.1
Viewpoint Tables
3.3.1.1
Viewpoint Cursor Address Table
The Viewpoint Cursor Address Table shows the character code used by the Viewpoint emulations to specify cursor column (
c
) or row (
r
).
Column (
c
) Code Column (
c
) Code Column (
c
) Code
1
NUL
36
5
71
p
2
SOH
37
6
72
q
Copyright 2010-2013 Schellenbach & Assoc., Inc.
236 AccuTerm 7 Help
30
31
32
33
34
35
26
27
28
29
22
23
24
25
18
19
20
21
14
15
16
17
10
11
12
13
8
9
6
7
Column (
c
) Code Column (
c
) Code Column (
c
) Code
3
4
5
STX
ETX
EOT
38
39
40
7
8
9
73
74
75
r s t
ENQ
@ u
ACK
BEL
BS
HT
DLE
DC1
DC2
45
46
47
48
41
42
43
44
A
B
C
D
E
F
G
76
77
78
79
80
v w x y
Code
@
DC3
DC4
NAK
SYN
ETB
CAN
EM
SPACE
!
"
#
$
%
&
'
(
)
0
1
2
3
4
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
H
I
P
Q
R
S
T
U
V
W
X
Y
\ a b c d e f g h i
10
11
12
13
18
19
20
21
4
5
2
3
Row (
r
)
1
6
7
8
9
14
15
16
17
22
23
24
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
3.3.1.2
Viewpoint Attribute Code Table
The Viewpoint Attribute Code Table defines the attribute code character (
a
) used by the Viewpoint emulations to assign visual attributes.
Code (
a
) Attribute Type
@
A
B
Normal
Dim
Normal Blinking
C
P
Q
Dim Blinking
Reverse
Dim Reverse
Copyright 2010-2013 Schellenbach & Assoc., Inc.
AccuTerm 7 Reference 237
Code (
a
) Attribute Type
R
S
`
Reverse Blinking
Dim Reverse Blinking
Underlined
a b c d
Dim Underlined
Underlined Blinking
Dim Underline Blinking
Invisible
3.3.1.3
Viewpoint Function Key Table
The Viewpoint Function Key Table defines the key code character (
k
) used by the Viewpoint emulations to program function and keypad keys.
Key
F13
F14
F15
F16
F9
F10
F11
F12
F5
F6
F7
F8
F1
F2
F3
F4
BKSP
TAB
INS
HOME
END
PGUP
PGDN
LEFT
RIGHT
UP
DOWN
ESC
ENTER
KPD ENTER
9
5
$
6
&
'
"
%
#
!
;
SPACE
Normal key code (
k
) Shifted key code (
k
)
FF
CR
SO
SI
BS
HT
LF
VT
NUL
SOH
STX
ETX
EOT
ENQ
ACK
BEL
7
FS
GS
RS
US
CAN
EM
SUB
ESC
DLE
DC1
DC2
DC3
DC4
NAK
SYN
ETB
W
8 X
F
G
B
E
C
A
[
@
Y
U
D
V
Copyright 2010-2013 Schellenbach & Assoc., Inc.
238 AccuTerm 7 Help
3.3.1.4
Viewpoint Key Code Table
The Viewpoint Key Code Table describes the default character sequence transmitted by the function, keypad and other special keys on the PC keyboard and the corresponding real terminal key.
PC Key
BKSP
SHIFT+BKSP
TAB
SHIFT+TAB
INS
SHIFT+F2
F3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RL+F5
CTRL+F6
SHIFT+CTRL+F6
Terminal Key
SHIFT+F7
F8
SHIFT+F8
F9
SHIFT+F9
F10
SHIFT+F10
F11
SHIFT+F11
F12
SHIFT+F12
F11
SHIFT+F11
F12
SHIFT+F12
F13
SHIFT+F13
F14
SHIFT+F14
F15
SHIFT+F15
F16
SHIFT+F16
Sequence
STX
'
CR
STX
8
CR
STX
(
CR
STX
9
CR
STX
)
CR
STX
:
CR
STX
*
CR
STX
;
CR
STX
+
CR
STX
<
CR
STX
,
CR
STX
;
CR
STX
+
CR
STX
<
CR
STX
,
CR
STX
=
CR
STX
-
CR
STX
>
CR
STX
.
CR
STX
?
CR
STX
/
CR
STX
0
CR
STX SPACE CR
3.3.1.5
Viewpoint 60 Graphic Character Table
The Viewpoint 60 Graphic Character Table defines the character code used for each of the linedrawing graphic characters used by Viewpoint 60 emulation.
Copyright 2010-2013 Schellenbach & Assoc., Inc.
डाउनलोड
विज्ञापन