Merge pull request #672 from JLarky/fix--stdout-buffer
do fflush instead of readline when readline is disabled.
This commit is contained in:
commit
524ab24e88
@ -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