cdk_selection(3) | Library Functions Manual | cdk_selection(3) |
cdk_selection - curses selection list widget.
cc [ flag ... ] file ... -lcdk [ library ... ]
#include <cdk.h>
CDKSELECTION *selection, chtype * actions);
CDKSELECTION *selection);
CDKSELECTION *selection, boolean box);
CDKSELECTION *selection);
CDKSELECTION *selection);
CDKSELECTION *selection, int index);
CDKSELECTION *selection);
CDKSELECTION *selection);
CDKSELECTION *selection);
CDKSELECTION *selection, char **list);
CDKSELECTION *selection, int index);
CDKSELECTION *selection);
CDKSELECTION *selection);
CDKSELECTION *selection, chtype input);
CDKSELECTION *selection, int xpos, int ypos, boolean relative, boolean refresh);
CDKSCREEN *cdkscreen, int xpos, int ypos, int spos, int height, int width, const char *title, CDK_CONST char **selectionList, int selectionListLength, CDK_CONST char **choiceList, int choiceListLength, chtype highlight, boolean box, boolean shadow);
CDKSELECTION *selection);
CDKSELECTION *selection, chtype highlight, int *defChoices, boolean box);
CDKSELECTION *selection, chtype attribute);
CDKSELECTION *selection, const char * color);
CDKSELECTION *selection, boolean boxWidget);
CDKSELECTION *selection, chtype character);
CDKSELECTION *selection, int index, int choice);
CDKSELECTION *selection, int *choices);
CDKSELECTION *selection, intindex);
CDKSELECTION *selection, chtype highlight);
CDKSELECTION *selection, chtype character);
CDKSELECTION *selection, CDK_CONST char **list, int listSize);
CDKSELECTION *selection, chtype character);
CDKSELECTION *selection, chtype character);
CDKSELECTION *selection, int index, int mode);
CDKSELECTION *selection, int *modes);
CDKSELECTION *selection, PROCESSFN callback, void * data);
CDKSELECTION *selection, PROCESSFN callback, void * data);
CDKSELECTION *selection, const char *title);
CDKSELECTION *selection, chtype character);
CDKSELECTION *selection, chtype character);
CDKSELECTION *selection, chtype character);
The Cdk selection widget creates a selection list. The following functions create or manipulate the Cdk selection list widget.
When the widget is activated there are several default key bindings which help the user enter or manipulate the information quickly:
Key | Action |
Left Arrow | Shift the whole list left one column. |
Right Arrow | Shift the whole list right one column. |
Up Arrow | Select the previous item in the list. |
Down Arrow | Select the next item in the list. |
Prev Page | |
Ctrl-B | Scroll one page backward. |
Next Page | |
Ctrl-F | Scroll one page forward. |
1 | |
< | |
g | |
Home | Move to the first element in the list. |
> | |
G | |
End | Move to the last element in the list. |
$ | Shift the whole list to the far right. |
| | Shift the whole list to the far left. |
Space | Cycles to the next choice on the current item. |
Return | Exit the widget and return 1. Also set the widget data exitType to vNORMAL. |
Tab | Exit the widget and return 1. Also set the widget data exitType to vNORMAL. |
Escape | Exit the widget and return -1. Also set the widget data exitType to vESCAPE_HIT. |
Ctrl-L | Refreshes the screen. |
cdk(3), cdk_binding(3), cdk_display(3), cdk_position(3), cdk_screen(3)