Commit 9a0fb6f9 authored by sdottaka's avatar sdottaka

mrdb, mirb: Add fflush() so that a external program can read output immediately.

parent 2732879f
......@@ -480,6 +480,7 @@ get_and_parse_command(mrb_state *mrb, mrdb_state *mrdb)
while (!cmd) {
for (p=NULL; !p || *p=='\0'; ) {
printf("(%s:%d) ", mrdb->dbg->prvfile, mrdb->dbg->prvline);
fflush(stdout);
p = get_command(mrb, mrdb);
}
......
......@@ -281,6 +281,7 @@ print_cmdline(int code_block_open)
else {
printf("> ");
}
fflush(stdout);
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment