summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2021-02-17 18:49:36 -0500
committerBenji Dial <benji6283@gmail.com>2021-02-17 18:51:20 -0500
commit9d8ce7688f051fc5cd9e917faf3b1e49a3e620ab (patch)
treec539b22a69d92fb98bb0214c7c19a59a815ddf49
parent78853170f8304ca7af29e7383f5efccedaf21454 (diff)
downloadportland-os-9d8ce7688f051fc5cd9e917faf3b1e49a3e620ab.tar.gz
adding yield before returning from readline
so that highway really, truly gets its newline in before the called program gets anything it sends in
-rw-r--r--src/user/libterm/readline.c1
1 files changed, 1 insertions, 0 deletions
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)