def reset_input_buffer(self):
        if not self.is_open:
            raise portNotOpenError
        termios.tcflush(self.fd, termios.TCIFLUSH)
Clear input buffer, discarding all that is in the buffer.
dataset/ETHPy150Open pyserial/pyserial/serial/serialposix.py/Serial.reset_input_buffer