diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-02-08 08:27:01 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-02-08 08:27:01 +0100 |
commit | c0735348802c29cc46db3758b5e477f2bc8ff058 (patch) | |
tree | 957d0ef3824de67e6c1ba48002f8ff008d1d81ae /lib/readline.c | |
parent | a22f59c178355ea3efe376739591a43c8ac877d1 (diff) | |
parent | 36d5eea256ff81ddb108180f655dd6921fe70e8d (diff) | |
download | barebox-c0735348802c29cc46db3758b5e477f2bc8ff058.tar.gz |
Merge branch 'for-next/ratp'
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')) { |