Skip to content

Commit 1a2c047

Browse files
authored
Ensure command prompt is displayed when REPL is used (#5033)
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
1 parent f5a8dc0 commit 1a2c047

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jerry-ext/util/repl.c

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
#include "jerryscript-ext/repl.h"
1717

18+
#include <stdio.h>
1819
#include <string.h>
1920

2021
#include "jerryscript-port.h"
@@ -30,6 +31,7 @@ jerryx_repl (const char *prompt_p)
3031
while (true)
3132
{
3233
jerryx_print_string (prompt_p);
34+
fflush (stdout);
3335

3436
jerry_size_t length;
3537
jerry_char_t *line_p = jerry_port_line_read (&length);

0 commit comments

Comments
 (0)