Commit 708b2ee4 authored by JLarky's avatar JLarky

do fflush instead of readline when readline is disabled.

 - fixes issue when output is getting buffered and is not sent until message is received or program has stopped
 - I used this answer http://stackoverflow.com/a/1716621/74167 for solution
parent be1ac1f4
......@@ -560,7 +560,10 @@ void set_prompt (const char *s) {
}
void update_prompt (void) {
if (readline_disabled) { return; }
if (readline_disabled) {
fflush (stdout);
return;
}
if (read_one_string) { return; }
print_start ();
set_prompt (get_default_prompt ());
......
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