%KN, %KO and %KS - Function-Key Logic under BS2000

%K

N

[N]
O
S

These commands are only applicable to terminals in BS2000 environments.

Command Function
%KN With terminal types 8160, 974n, 9750 - 9755 This command causes the literals "%K1" to "%K20" to be loaded to the keys P1 to P20.
With terminal types 9756, 9758, 976n This command causes the send-key codes "F1" to "F20" to be loaded to the keys P1 to P20.
%KO This command causes the literals "01" to "20" as well as the send-key code "F5" to be loaded to the keys P1 to P20.
%KS This command causes the literals "A" to "T" as well as the send-key code "F5" to be loaded to the keys P1 to P20.
%KON If an N is specified after the terminal command %KN, %KO or %KS, only the corresponding function-key mode (KN, KO or KS mode) will be activated, but no values will be loaded to the P-keys.
%KNN
%KSN

See also Natural under BS2000 (in the Operations documentation).