def METHOD_NAME(self, data):
    self.read_buffer = self.read_buffer + data
    lines = self.read_buffer.splitlines()
    for line in lines:
        line = remove_all_known_special_chars(line)
        if not re.search(self._re_set_prompt_cmd, line) and re.search(self.target_prompt, line):
            self._notify_on_connect()
            self._shell_operable.set()
            data = re.sub(self.target_prompt, '', self.read_buffer, re.MULTILINE)
            self.data_received(data=data, recv_time=datetime.datetime.now())
        elif not self._export_sent and re.search(self.first_prompt, self.read_buffer, re.MULTILINE):
            self.send(self.set_prompt_cmd)
            self._export_sent = True