src/eric7/MicroPython/MicroPythonReplWidget.py

branch
mpy_network
changeset 10012
d649d500a9a1
parent 10011
26a7d607b8f6
child 10030
512d8ecbfdab
equal deleted inserted replaced
10011:26a7d607b8f6 10012:d649d500a9a1
557 ): 557 ):
558 if b"\x1b\\" in data[index + 4 :]: 558 if b"\x1b\\" in data[index + 4 :]:
559 # 'set window title' command detected: <Esc>]0;...<Esc>\ 559 # 'set window title' command detected: <Esc>]0;...<Esc>\
560 # __IGNORE_WARNING_M891__ 560 # __IGNORE_WARNING_M891__
561 titleData = data[index + 4 :].split(b"\x1b\\")[0] 561 titleData = data[index + 4 :].split(b"\x1b\\")[0]
562 title = titleData.decode() 562 title = titleData.decode("utf-8")
563 index += len(titleData) + 5 # one more is done at the end 563 index += len(titleData) + 5 # one more is done at the end
564 self.osdInfo.emit(title) 564 self.osdInfo.emit(title)
565 else: 565 else:
566 # data is incomplete; buffer and stop processing 566 # data is incomplete; buffer and stop processing
567 self.__replBuffer = data[index:] 567 self.__replBuffer = data[index:]

eric ide

mercurial