callback
The function key assignments. When a key is pressed the corresponding command procedure value is executed. Although 64 are permitted, not all keyboards have all keys available . They are treated as four logical banks of 16 keys:
e.g. IBM Keyboard:
F1 - F16 - Fkeys [ 1 ] - [ 16 ].
Shift F1 - F16 - Fkeys [ 17 ] - [ 32 ].
Ctrl F1 - F16 - Fkeys [ 33 ] - [ 48 ].
Alt F1 - F16 - Fkeys [ 49 ] - [ 64 ].
Function key procedures do not require any parameters at execution time. At system startup, all fkey procedures are null.
Arrange for a macro to be executed every time F5 is pressed.
fkey[5] = { exec persp(current_window) }