client

client — Client connection to FEP server

Synopsis

                    FepClient;
void                fep_client_close                    (FepClient *client);
FepClient *         fep_client_open                     (const char *address);
void                fep_client_send_data                (FepClient *client,
                                                         const char *data,
                                                         size_t length);
void                fep_client_set_cursor_text          (FepClient *client,
                                                         const char *text,
                                                         FepAttribute *attr);
void                fep_client_set_status_text          (FepClient *client,
                                                         const char *text,
                                                         FepAttribute *attr);

Description

Details

FepClient

typedef struct _FepClient FepClient;

fep_client_close ()

void                fep_client_close                    (FepClient *client);

Close the control socket and release the memory allocated for client.

client :

a FepClient

fep_client_open ()

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`.

address :

socket address of the FEP server. [allow-none]

Returns :

a new FepClient.

fep_client_send_data ()

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.

client :

a FepClient

data :

data to be sent

length :

length of data

fep_client_set_cursor_text ()

void                fep_client_set_cursor_text          (FepClient *client,
                                                         const char *text,
                                                         FepAttribute *attr);

Request to display text at the cursor position on the terminal.

client :

a FepClient

text :

a cursor text

attr :

a FepAttribute

fep_client_set_status_text ()

void                fep_client_set_status_text          (FepClient *client,
                                                         const char *text,
                                                         FepAttribute *attr);

Request to display text at the bottom of the terminal.

client :

a FepClient

text :

a status text

attr :

a FepAttribute