diff --git a/src/A3.cpp b/src/A3.cpp index 5f334e7f8..a6aaa9846 100644 --- a/src/A3.cpp +++ b/src/A3.cpp @@ -279,6 +279,9 @@ bool A3::is_command ( // Add an Arg for every word from std::cin. void A3::append_stdin () { + // Delay, to give it a chance to buffer the input. + delay (0.01); + // Use 'select' to determine whether there is any std::cin content buffered // before trying to read it, to prevent blocking. struct timeval tv;