From ba5e8ebe9ab19ea8d69fd081946968cded0eba72 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 11 May 2023 21:15:07 +0200 Subject: Flush stdout on batch mode and -i scrambles --- src/shell.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shell.c b/src/shell.c index 654d1c8..ef89a15 100644 --- a/src/shell.c +++ b/src/shell.c @@ -90,6 +90,7 @@ exec_args(int c, char **v) free_alg(scramble); args->scramble = NULL; } + fflush(stdout); } } else { cmd->exec(args); @@ -132,6 +133,8 @@ launch(bool batchmode) if (shell_argc > 0) exec_args(shell_argc, shell_argv); + + fflush(stdout); } for (i = 0; i < MAXNTOKENS; i++) -- cgit v1.3