Work around IDF inconsistency with stdout buffering.

This commit is contained in:
Jade Mattsson 2024-03-01 11:01:07 +11:00
parent 70c7437cdc
commit 32fa5db1a6
1 changed files with 2 additions and 0 deletions

View File

@ -156,6 +156,8 @@ static void console_task(void *)
{
// If we want to honor run_input, we'd need to check the return val
feed_lua_input(linebuf, n);
// The IDF doesn't seem to honor setvbuf(stdout, NULL, _IONBF, 0) :(
fsync(fileno(stdout));
}
}
}