fnkey Command fnkey Set/print function keys fnkey [ n [ string ] ] 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 F2 to execute the COHERENT command date: fnkey 2 'date ' Note that this command sets F2 to the string date\n. 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