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
This commit is contained in:
parent
be1ac1f456
commit
708b2ee432
@ -560,7 +560,10 @@ void set_prompt (const char *s) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void update_prompt (void) {
|
void update_prompt (void) {
|
||||||
if (readline_disabled) { return; }
|
if (readline_disabled) {
|
||||||
|
fflush (stdout);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (read_one_string) { return; }
|
if (read_one_string) { return; }
|
||||||
print_start ();
|
print_start ();
|
||||||
set_prompt (get_default_prompt ());
|
set_prompt (get_default_prompt ());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user