Commits

Lars Yencken committed de4b9cd

Fixes a bug in Slot when updating coloured text.

Comments (0)

Files changed (1)

         self.stream = stream
         self.last_text = None
         self.is_finished = False
-        self.max_size = 0
         if text:
             self.update(text)
 
 
         if self.last_text:
             last_len = shellColor.realLen(self.last_text)
-            self.stream.write('\b' * len(self.last_text))
+            self.stream.write('\b' * shellColor.realLen(self.last_text))
             this_len = shellColor.realLen(text)
             if this_len < last_len:
                 text = text + ' ' * (last_len - this_len)