4 /*===========================================================================*
6 *===========================================================================*/
7 int fkey_ctl(request
, fkeys
, sfkeys
)
8 int request
; /* request to perform */
9 int *fkeys
; /* bit masks for F1-F12 keys */
10 int *sfkeys
; /* bit masks for Shift F1-F12 keys */
12 /* Send a message to the TTY server to request notifications for function
13 * key presses or to disable notifications. Enabling succeeds unless the key
14 * is already bound to another process. Disabling only succeeds if the key is
15 * bound to the current process.
19 memset(&m
, 0, sizeof(m
));
20 m
.FKEY_REQUEST
= request
;
21 m
.FKEY_FKEYS
= (fkeys
) ? *fkeys
: 0;
22 m
.FKEY_SFKEYS
= (sfkeys
) ? *sfkeys
: 0;
23 s
= _taskcall(TTY_PROC_NR
, TTY_FKEY_CONTROL
, &m
);
24 if (fkeys
) *fkeys
= m
.FKEY_FKEYS
;
25 if (sfkeys
) *sfkeys
= m
.FKEY_SFKEYS
;