diff options
Diffstat (limited to 'lib/readline.c')
-rw-r--r-- | lib/readline.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/readline.c b/lib/readline.c index cac967005f..b5d99ca185 100644 --- a/lib/readline.c +++ b/lib/readline.c @@ -2,6 +2,8 @@ #include <readkey.h> #include <init.h> #include <libbb.h> +#include <poller.h> +#include <ratp.h> #include <xfuncs.h> #include <complete.h> #include <linux/ctype.h> @@ -198,6 +200,12 @@ int readline(const char *prompt, char *buf, int len) puts (prompt); while (1) { + while (!tstc()) { + poller_call(); + if (IS_ENABLED(CONFIG_RATP)) + ratp_run_command(); + } + ichar = read_key(); if ((ichar == '\n') || (ichar == '\r')) { |