flush output after each command in interactive mode.