Programmable Soft Keys; Controlling The Soft Key Display; Defining Soft Keys - HP 2641A Reference Manual

Display station
Table of Contents

Advertisement

Terminal Control Functions
PROGRAMMABLE SOFT KEYS
The terminal has 8 programmable keys
[ T I -
CIU .
Each key can be assigned a string of up to 80 characters.
The keys can be defined to be used at the terminal only
(L), transmitted to the computer only (T), or to be treated
as normal keyboard input (N). The keys can be program-
med with escape code sequences to control or modify
terminal operation. The keys can be used in application
programs to create "menu" lists of special commands.
CONTROLLING THE SOFT KEY DISPLAY
You can cause the current soft key assignments to be
displayed using the following escape sequence:
The soft keys can be loaded by the terminal operator (refer
to the User Manual) or under program control. It is not
necessary to display the current key assignments to enter
new ones. Soft Key assignments can be made directly
using the following escape sequence:
ESC & f <attribute> <key> <length> <string>
where:
a
(normal)
< attribute>
1
(local only)
a
(0
is default)
2 (transmit only)
<key> is 1-8 k (1 is default)
<length> is 1-80
1 (1
is default)
<string> is the character sequence to be assigned
ESCj
This will also allow the terminal operator to enter new key
assignments from the keyboard. Procedures for entering
new soft key assignments by escape sequences are given
next in this section. The soft key display is in the following
format:
If a carriage return (CR) is included in the string portion
of the soft key definition, the CR will be translated to a
CR,LF if the
~
key is down.
If the transmit only attribute (2) is used, the key will have
no effect unless the terminal is set for remote operation.
ESC k
DEFINING SOFT KEYS
Adding characters to the soft key string
may delete lines in normal display mem-
ory if the memory is full.
The soft key assignments are displayed in place of the
normal screen display. Data in display memory is not lost.
When the key assignment is completed and the terminal
returned to normal operation, the old display is returned
to the screen. Normal operation is restored using the fol-
lowing escape sequence:
iII
N
HELLO-C90S,PASWRD,3
lilT
F,:q
rET
F,:r
lilT
~5
II1T
F,:t
(liT
F,:u
~T
F,:v
~T
F,:w
Also, it may invoke a Block transfer handshake and ap-
pend the appropriate terminator to the string. (See Ap-
pendix
C,
figure C-2, sheet 2.) The key assignment sequ-
ence must be terminated with an upper case character.
Example:
Assign
"HELLO-C905,PASWRD,3"
to
the
LL:J
key.
ESC
&
f 0
a
1 k 1 9 L H ELL 0 - C 9 05 ) PAS WR D ) 3CR
After the key assignment in the previous example has
been made, a display of the key assignments would appear
as follows:
I
CAUTION
I
Do not include line feeds (LF's) or block
terminators (RS/GS) in soft key string
(other than at the end of the string) if the
soft key assignment is to be stored on
cartridge tape from the soft key display.
c::::D
=
ESC t
c:::::&J
=
ESC u
c::=E:J
=
ESC v
CKJ
=
ESC w
NOTE
string is any series of up to 80
characters
1
L (local only)
I
type is N (normal keyboard
operation)
T (transmit only)
where: # is the key number (1-8)
[TI
=
ESC
P
c:::EJ
=
ESC
q
CEJ
=
ESC r
[JO
=
ESC
5
F#type
string
The key assignment operation displays the current key
assignments in format mode. The attribute and string
fields are unprotected allowing the operator to enter new
values. In addition, the values are tested during input to
make sure that only valid parameter values are used.
When the terminal is initialized the soft keys are assigned
default values as follows:
3-3

Advertisement

Table of Contents
loading

This manual is also suitable for:

2645a2645s2645n

Table of Contents