1cdk_process(3)             Library Functions Manual             cdk_process(3)
2
3
4

NAME

6       cdk_process - curses widget pre/post-processing
7

SYNOPSIS

9       Perform  pre- and post-processing of data which is injected into a wid‐
10       get.
11

DESCRIPTION

13       Character input is handled by each widget by  its  injection  function.
14       That  is  typically a large case-statement consisting of the actions to
15       be taken for editing and scrolling keys.  The calling  application  can
16       modify  the  behavior  of  the injection function by defining either or
17       both preprocess and postprocess functions.
18
19       Preprocessing is performed before doing anything with the injected key‐
20       stroke.   If the preprocess function returns zero, no further action is
21       taken in the injection function.  Note that the preprocess function may
22       do  more than filter out characters; it can fill in logic to coordinate
23       different widgets.
24
25       Postprocessing is performed after all other actions have been  done  in
26       the  injection  function.  Like the other actions, it is performed only
27       if the preprocess function returns a nonzero value.  Unlike the prepro‐
28       cess function, its return value is ignored.
29

SEE ALSO

31       cdk(3), cdk_binding(3).
32
33
34
35                                                                cdk_process(3)
Impressum