Probably messages are buffered, so you wont get them until the buffer is flushed.
If this external program is made by you, you can force flushing by
Qt Code:
std::cout << "a message" << std::flush; // C++ fflush(stdout); // C/C++To copy to clipboard, switch view to plain text mode
Bookmarks