summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/src/cli-rl.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/cli/src/cli-rl.c b/cli/src/cli-rl.c
index bca37d9c509..4745cf49369 100644
--- a/cli/src/cli-rl.c
+++ b/cli/src/cli-rl.c
@@ -108,11 +108,17 @@ cli_rl_process_line (char *line)
int
-cli_rl_stdin (int fd, int idx, void *data,
+cli_rl_stdin (int fd, int idx, int gen, void *data,
int poll_out, int poll_in, int poll_err)
{
+ struct cli_state *state = NULL;
+
+ state = data;
+
rl_callback_read_char ();
+ event_handled (state->ctx->event_pool, fd, idx, gen);
+
return 0;
}