223 ) |
223 ) |
224 if self.__socket.hasTimedOut(): |
224 if self.__socket.hasTimedOut(): |
225 out, err = b"", b"Timeout while processing commands." |
225 out, err = b"", b"Timeout while processing commands." |
226 else: |
226 else: |
227 # get rid of any OSD string and send it |
227 # get rid of any OSD string and send it |
228 if result.startswith(b"\x1b]0;"): |
228 while result.startswith(b"\x1b]0;"): |
229 osd, result = result.split(b"\x1b\\", 1) |
229 osd, result = result.split(b"\x1b\\", 1) |
230 self.osdInfo.emit(osd[4:].decode("utf-8")) |
230 self.osdInfo.emit(osd[4:].decode("utf-8")) |
231 |
231 |
232 if self.TracebackMarker in result: |
232 if self.TracebackMarker in result: |
233 errorIndex = result.find(self.TracebackMarker) |
233 errorIndex = result.find(self.TracebackMarker) |