On 'o' keypress, turn status display on or off
(self)
| 565 | self.stat.update('Speed: %d' % (100 - self.delay // 10), self.delay) |
| 566 | |
| 567 | def toggle_status(self): |
| 568 | """ |
| 569 | On 'o' keypress, turn status display on or off |
| 570 | """ |
| 571 | args.status_off = not args.status_off |
| 572 | on_off = 'off' if args.status_off else 'on' |
| 573 | self.stat.update('Status: %s' % on_off, self.delay) |
| 574 | |
| 575 | |
| 576 | class Writer: |