ITEM: T3822L
How to load 3151 Programmable function keys?
Question:
How to load IBM3151 function keys from AIX
The models of the IBM3151 terminals that support programmable
function keys have the capability of having those function key
definitions downloaded from the attached host. This document
will describe how to perform this operation by giving examples.
The Basic command that must be sent to the 3151 to program the
function keys is as follows:
ESC ! = fn fnx ff fp ESC =
fn - function key definition (F1-F31)
fnx - function key extended (F32-F36 ONLY)
ff - function format
AID - x20 = space., Command sent to host.
Char.String - x21 = !. Command displayed at cursor.
fp - function printed (character string)
64 chars (model 31/41) or 32 chars (model 11)
Examples to set keys to send to the host to number of key.
Function Command vi entry
Key String to Terminal \^[=esc, ctrl-v ESC
F1 echo "\\033!=! One\\033=" \^[!=! One\^[=\^M
F2 echo "\\033!=\\022 Two\\033=" \^[!=" Two\^[=\^M
F3 echo "\\033!=\# Three\\033=" \^[!=\# Three\^[=\^M
F4 echo "\\033!=$ Four \\033=" \^[!=$ Four\^[=\^M
F5 echo "\\033!=% Five \\033=" \^[!=% Five\^[=\^M
F6 echo "\\033!=& Six \\033=" \^[!=& Six\^[=\^M
F7 echo "\\033!=' Seven \\033=" \^[!=' Seven\^[=\^M
F8 echo "\\033!=( Eight \\033=" \^[!=( Eight\^[=\^M
F9 echo "\\033!=) Nine \\033=" \^[!=) Nine\^[=\^M
F10 echo "\\033!=* Ten \\033=" \^[!=* Ten\^[=\^M
Note: To continue with keys from F11 to F31 continue by replacing
the fn key as follows.
F11: + F12: , F13: - F14: . F15: / F16: 0 F17: 1 F18: 2
F19: 3 F20: 4 F21: 5 F22: 6 F23: 7 F24: 8 F25: 9 F26: :
F27: ; F28: \< F29: = F30: > F31: ?
For Function Keys 32-36, The fn field is set to a space (x20), and
the fnx field is used to choose the character.
F32 echo "\\033!= !Thirtytwo \\033="
F33 echo "\\033!= \\022Thirtytwo \\033="
F34 echo "\\033!= \#Thirtytwo \\033="
F35 echo "\\033!= $Thirtytwo \\033="
F36 echo "\\033!= %Thirtytwo \\033="
Problem with using the echo with F2 because of " in string. This
is also true with F33.
Support Line: How to load 3151 Programmable function keys? ITEM: T3822L
Dated: March 1995 Category: N/A
This HTML file was generated 99/06/24~13:30:36
Comments or suggestions?
Contact us