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

This commit is contained in:
sdottaka
2014-12-19 16:09:55 +09:00
parent 2732879f3e
commit 9a0fb6f91b
2 changed files with 2 additions and 0 deletions
@@ -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);
}
+1
View File
@@ -281,6 +281,7 @@ print_cmdline(int code_block_open)
else {
printf("> ");
}
fflush(stdout);
}
#endif