Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/app/repl.c
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,11 @@ static bool handle_command(ray_repl_t* repl, const char* str, size_t len) {
ray_release(result);
}

/* A piped REPL uses block-buffered stdout. Every command response is
* complete at this boundary, including output printed by handlers and
* errors printed above, so make it visible before waiting for more input. */
fflush(stdout);

/* Track timeit echoing so the prompt reflects current state. */
repl->timeit = g_ray_profile.active;
return true;
Expand Down
Loading