def flushInput(self): """Clear input buffer, discarding all that is in the buffer.""" termios.tcflush(self._f.fileno(), termios.TCIFLUSH)