'Clear output buffer, aborting the current output and discarding all
that is in the buffer.'

def reset_output_buffer(self):

    if (not self.is_open):
        raise portNotOpenError
    termios.tcflush(self.fd, termios.TCOFLUSH)
