|
|
coherent
fnkey Command fnkey
Set/print function keys
ffnnkkeeyy [ _n [ _s_t_r_i_n_g ] ]
The console keyboard of an IBM AT COHERENT system includes 10
special function keys, labelled F1 through F10. Initially,
typing these keys has no effect.
fnkey with a numeric argument n in the range 1 to 10 programs
function key Fn to send the given string. If no string is given,
fnkey resets Fn to send nothing. If n is 0, fnkey resets all
function keys to send nothing.
With no argument, fnkey prints the current string for each func-
tion key.
***** Example *****
The following example programs function key FF22 to execute the
COHERENT command date:
fnkey 2 'date
'
Note that this command sets F2 to the string ddaattee\nn. If you type
fnkey without any arguments, it prints the following on your
screen:
F2: date\n
***** Files *****
/dev/console
***** See Also *****
commands
***** Diagnostics *****
fnkey prints ``cannot open /dev/console'' if the user lacks per-
mission to open /dev/console.
COHERENT Lexicon Page 1
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.