Skip to content
Snippets Groups Projects
Commit d49facc8 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Flush console output stream after executing a script

Solves problem of status output lines being interleved with console
output (e.g. from print()) after executing a script.
parent b945e5f3
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3128 passed
......@@ -1082,6 +1082,7 @@ long js_exec(const char *fname, const char* buf, char** args)
cb.events_supported = TRUE;
exec_result = JS_ExecuteScript(js_cx, js_glob, js_script, &rval);
js_handle_events(js_cx, &cb, &terminated);
fflush(confp);
char *p;
if(buf != NULL) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment