PyConsoleScreenBuffer.FlushConsoleInputBuffer

FlushConsoleInputBuffer()

Flush input buffer