BOOTSTRAP (kutils) functions
LIBRARY ROUTINE
kset_prompthandler - set the prompt handling routine used by kprompt()
LIBRARY CALL
knotify kset_prompthandler(
knotify new_handler)
INPUT
- new_handler - the prompt handler to be called. Specify
xvu_prompt() for the Khoros pop-up prompt
window (xvroutines & hybrid routines only), NULL
for the Khoros default prompt handler which
prints to the tty, or your own prompt handler.
OUTPUT
none
RETURN VALUE
the previously installed prompt handler, or NULL
if the default prompt handler was installed.
DESCRIPTION
Sets the prompt handler routine to be used by the kprompt()
reporting facility. When set to NULL (the default) the
default Khoros prompt handler prompt the user for a response
using kstderr and kstdin.
If a different prompt handler is set, the prompt handler must
be declared as follows:
prompt_handler(
char *yes_response,
char *no_response,
int default_val,
char *message)
yes_response - string to put in the affirmative field of a prompt
no_response - string to put in the negative field of a prompt
default - string to put in the default field of a prompt
message - grammatically correct, clear prompt
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
none
MODIFICATION
none
FILES
$BOOTSTRAP/objects/library/kutils/src/notify.c
SEE ALSO
kutils(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.