Преглед изворни кода

Print buffer when reading an escape character

Dániel Buga пре 4 година
родитељ
комит
04589b565f
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      tools/idf_monitor_base/ansi_color_converter.py

+ 1 - 0
tools/idf_monitor_base/ansi_color_converter.py

@@ -95,6 +95,7 @@ class ANSIColorConverter(object):
             b = bytes([b])
             length = len(self.matched)
             if b == b'\033':  # ESC
+                self._output_write(self.matched)
                 self.matched = b
             elif (length == 1 and b == b'[') or (1 < length < 7):
                 self.matched += b