equal
deleted
inserted
replaced
172 # cursor bounce between the right and left sides |
172 # cursor bounce between the right and left sides |
173 amt = self.indetcount % (2 * progwidth) |
173 amt = self.indetcount % (2 * progwidth) |
174 amt -= progwidth |
174 amt -= progwidth |
175 bar = (' ' * int(progwidth - abs(amt)) + '<=>' + |
175 bar = (' ' * int(progwidth - abs(amt)) + '<=>' + |
176 ' ' * int(abs(amt))) |
176 ' ' * int(abs(amt))) |
177 prog = ''.join(('[', bar , ']')) |
177 prog = ''.join(('[', bar, ']')) |
178 out = spacejoin(head, prog, tail) |
178 out = spacejoin(head, prog, tail) |
179 else: |
179 else: |
180 out = spacejoin(head, tail) |
180 out = spacejoin(head, tail) |
181 self._writeerr('\r' + encoding.trim(out, termwidth)) |
181 self._writeerr('\r' + encoding.trim(out, termwidth)) |
182 self.lasttopic = topic |
182 self.lasttopic = topic |