From 9d8ce7688f051fc5cd9e917faf3b1e49a3e620ab Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Wed, 17 Feb 2021 18:49:36 -0500 Subject: adding yield before returning from readline so that highway really, truly gets its newline in before the called program gets anything it sends in --- src/user/libterm/readline.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/user') diff --git a/src/user/libterm/readline.c b/src/user/libterm/readline.c index b37801d..fdb61a1 100644 --- a/src/user/libterm/readline.c +++ b/src/user/libterm/readline.c @@ -73,6 +73,7 @@ uint32_t read_line(char *sz, uint32_t max_length, const char *prompt) { sz[l] = '\0'; term_add_char('\n'); term_paint(); + _yield_task(); return l; default: if (l == max_length) -- cgit v1.2.3