This PR implements flushInput and flushOutput for Windows. The behavior is the same as their Unix counterparts, in that:
-flushOutput clears the contents of an output buffer without transmitting the deleted characters (as opposed to flush, which clears the contents of the output buffer and transmits the deleted characters).
-flushInput clears the contents of the input buffer.
This relates to issue #148.
This PR implements
flushInput
andflushOutput
for Windows. The behavior is the same as their Unix counterparts, in that:-
flushOutput
clears the contents of an output buffer without transmitting the deleted characters (as opposed toflush
, which clears the contents of the output buffer and transmits the deleted characters). -flushInput
clears the contents of the input buffer.Refer to MSDN for more details.