| Top |
| int | (*FepEventFilter) () |
| FepClient * | fep_client_open () |
| int | fep_client_get_poll_fd () |
| void | fep_client_set_cursor_text () |
| void | fep_client_set_status_text () |
| void | fep_client_send_text () |
| void | fep_client_send_data () |
| void | fep_client_forward_key_event () |
| void | fep_client_set_event_filter () |
| int | fep_client_dispatch () |
| void | fep_client_close () |
FepClient *
fep_client_open (const char *address);
Connect to the FEP server running at address
. If address
is
NULL, it gets the address from the environment variable
LIBFEP_CONTROL_SOCK.
int
fep_client_get_poll_fd (FepClient *client);
Get the file descriptor of the control socket which can be used by poll().
void fep_client_set_cursor_text (FepClient *client,const char *text,FepAttribute *attr);
Request to display text
at the cursor position on the terminal.
void fep_client_set_status_text (FepClient *client,const char *text,FepAttribute *attr);
Request to display text
at the bottom of the terminal.
void fep_client_send_text (FepClient *client,const char *text);
Request to send text
to the child process of the FEP server.
text
will be converted from UTF-8 to the local encoding in the
server.
void fep_client_send_data (FepClient *client,const char *data,size_t length);
Request to send data
to the child process of the FEP server.
void fep_client_forward_key_event (FepClient *client,unsigned int keyval,FepModifierType modifiers);
Request to send key event to the child process of the FEP server.
void fep_client_set_event_filter (FepClient *client,FepEventFilter filter,void *data);
Set a key event filter which will be called when client receives key events.
void
fep_client_close (FepClient *client);
Close the control socket and release the memory allocated for client
.
typedef struct {
FepEvent event;
unsigned int keyval;
FepModifierType modifiers;
char *source;
size_t source_length;
} FepEventKey;
FepEvent |
base event struct |
|
keysym value |
||
FepModifierType |
modifier mask |
|
original string which generated the event |
||
length of |
typedef struct {
FepEvent event;
unsigned int cols;
unsigned int rows;
} FepEventResize;