cdk_fselect
curses file selector widget.
- Provided by: libcdk5-dev (Version: 5.0.20160131-1)
- Source: libcdk5
- Report a bug
curses file selector widget.
cc [ flag ... ] file ... -lcdk [ library ... ]
#include <cdk.h>
CDKFSELECT *fselect, chtype *actions);
EObjectType objectType, void *object, void *clientData);
CDKFSELECT *fselect);
CDKFSELECT *fselect, boolean box);
CDKFSELECT *fselect);
CDKFSELECT *fselect);
CDKFSELECT *widget, int *size);
CDKFSELECT *widget);
CDKFSELECT *fselect);
CDKFSELECT *fselect, int *count);
CDKFSELECT *fselect);
CDKFSELECT *fselect);
CDKFSELECT *fselect);
CDKFSELECT *fselect);
CDKFSELECT *fselect);
CDKFSELECT *fselect);
CDKFSELECT *fselect, chtype input);
CDKFSELECT *fselect, int xpos, int ypos, boolean relative, boolean refresh);
CDKSCREEN *cdkscreen, int xpos, int ypos, int height, int width, const char *title, const char *label, chtype fieldAttribute, chtype fillerCharacter, chtype highlight, const char *dirAttribute, const char *fileAttribute, const char *linkAttribute, const char *sockAttribute, boolean box, boolean shadow);
CDKFSELECT *fselect);
CDKFSELECT *fselect, const char *directory, chtype fieldAttribute, chtype fillerCharacter, chtype highlight, const char *dirAttribute, const char *fileAttribute, const char *linkAttribute, const char *sockAttribute, boolean box);
CDKFSELECT *fselect, chtype attribute);
CDKFSELECT *fselect, const char * color);
CDKFSELECT *fselect, boolean box);
CDKFSELECT *fselect, chtype character);
CDKFSELECT *widget, CDK_CONST char **list, int listSize);
CDKFSELECT *widget, int item);
CDKFSELECT *fselect, const char *attribute);
CDKFSELECT *fselect);
CDKFSELECT *fselect, const char *directory);
CDKFSELECT *fselect, const char *attribute);
CDKFSELECT *fselect, chtype filler);
CDKFSELECT *fselect, chtype highlight);
CDKFSELECT *fselect, chtype character);
CDKFSELECT *fselect, chtype character);
CDKFSELECT *fselect, chtype character);
CDKFSELECT *fselect, const char *attribute);
CDKFSELECT *fselect, const char *attribute);
CDKFSELECT *fselect, chtype character);
CDKFSELECT *fselect, chtype character);
CDKFSELECT *fselect, chtype character);
The Cdk file selector widget creates a widget which allows a user to interact with the Unix file system. This widget allows the user to traverse the file system and even delete files. (See NOTES below for more information)
When the widget is activated there are several default key bindings which will help the user enter or manipulate the information quickly. Since this widget is built from both the scrolling list widget and the entry field widget, the key bindings are the same for the respective fields. The extra key bindings are listed below.
| Key | Action |
| CTRL-^ | Displays statistics about the current filename. |
| Tab | Tries to complete the current filename. |
| Up Arrow | Scrolls the scrolling list up one line. |
| Down Arrow | Scrolls the scrolling list down one line. |
| Page Up | Scrolls the scrolling list up one page. |
| CTRL-B | Scrolls the scrolling list up one page. |
| Page Down | Scrolls the scrolling list down one page. |
| CTRL-F | Scrolls the scrolling list down one page. |
| Return | Returns the filename in the entry field of the file selector. It also sets the widget data exitType to vNORMAL. |
| Escape | Exits the widget and returns a NULL pointer. It also sets the widget data exitType to vESCAPE_HIT. |
cdk(3), cdk_binding(3), cdk_display(3), cdk_position(3), cdk_screen(3)
This widget is created from the scrolling list widget and the entry field widget. This is a good example on how to build your own widgets using the base widgets provided in this distribution. In order for you to delete files using the file selector, you must add the following call into your program. (the character X is the character you wish to use to tell the file selector you want to delete a file.)