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 c007e10f50..a5dac08af1 100644 --- a/lib/readline.c +++ b/lib/readline.c @@ -1,6 +1,8 @@ #include <common.h> #include <readkey.h> #include <init.h> +#include <poller.h> +#include <ratp.h> #include <xfuncs.h> #include <complete.h> #include <linux/ctype.h> @@ -197,6 +199,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')) { |