| Top |
| FepGClient * | fep_g_client_new () |
| void | fep_g_client_set_cursor_text () |
| void | fep_g_client_set_status_text () |
| void | fep_g_client_send_text () |
| void | fep_g_client_send_data () |
| void | fep_g_client_forward_key_event () |
| gint | fep_g_client_get_poll_fd () |
| gboolean | fep_g_client_dispatch () |
FepGClient * fep_g_client_new (const char *address,GCancellable *cancellable,GError **error);
Connect to the FEP server running at address
. If address
is
NULL, it gets the address from the environment variable
LIBFEP_CONTROL_SOCK.
void fep_g_client_set_cursor_text (FepGClient *client,const char *text,FepGAttribute *attr);
Request to display text
at the cursor position on the terminal.
void fep_g_client_set_status_text (FepGClient *client,const char *text,FepGAttribute *attr);
Request to display text
at the bottom of the terminal.
void fep_g_client_send_text (FepGClient *client,const char *text);
Request to send data
to the child process of the FEP server.
text
will be converted from UTF-8 to the local encoding in the
server.
void fep_g_client_send_data (FepGClient *client,const char *data,gsize length);
Request to send data
to the child process of the FEP server.
void fep_g_client_forward_key_event (FepGClient *client,guint keyval,guint modifiers);
Request to send a key event to the child process of the FEP server.
gint
fep_g_client_get_poll_fd (FepGClient *client);
Get the file descriptor of the control socket which can be used by poll().
struct FepGClientClass {
/* signals */
gboolean (*filter_key_event) (FepGClient *client,
guint keyval,
guint modifiers);
void (*resized) (FepGClient *client,
guint cols,
guint rows);
gboolean (*filter_event) (FepGClient *client,
FepGEvent *event);
};
“filter-event” signalgboolean user_function (FepGClient *client, gpointer event, gpointer user_data)
The ::filter-event signal is emitted when key event is dispatched.
Flags: Run Last
“filter-key-event” signalgboolean user_function (FepGClient *client, guint keyval, guint modifiers, gpointer user_data)
The ::filter-key-event signal is emitted when key event is dispatched.
client |
||
keyval |
a keyval |
|
modifiers |
modifier mask |
|
source |
original string which generated the event |
|
source_length |
length of |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“resized” signalvoid user_function (FepGClient *client, guint cols, guint rows, gpointer user_data)
The ::resized signal is emitted when terminal is resized.
client |
||
cols |
number of columns |
|
rows |
number of rows |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last