Append digits as a key modifier, clear the modifier if not a digit. Args: mod: potential modifier string
(self, mod)
| 736 | self.modifier = str() |
| 737 | |
| 738 | def handle_modifier(self, mod): |
| 739 | """Append digits as a key modifier, clear the modifier if not |
| 740 | a digit. |
| 741 | |
| 742 | Args: |
| 743 | mod: potential modifier string |
| 744 | """ |
| 745 | self.modifier += mod |
| 746 | if not self.modifier.isdigit(): |
| 747 | self.modifier = str() |
| 748 | |
| 749 | def resize(self): |
| 750 | """Handle terminal resizing""" |