(self)
| 98 | return max(len(arr) - self.height, 0) |
| 99 | |
| 100 | def get_input(self): |
| 101 | chars = list(self.orig_stdin.readline()[:-1]) |
| 102 | while chars or self.requested_events: |
| 103 | if self.requested_events: |
| 104 | self.process_event(self.requested_events.pop()) |
| 105 | continue |
| 106 | c = chars.pop(0) |
| 107 | if c in "/": |
| 108 | c = "\n" |
| 109 | elif c in "\\": |
| 110 | c = key_dispatch[self.config.undo_key][0] |
| 111 | elif c in "$": |
| 112 | c = key_dispatch[self.config.pastebin_key][0] |
| 113 | elif c in "|": |
| 114 | c = key_dispatch[self.config.reimport_key][0] |
| 115 | self.process_event(c) |
| 116 | |
| 117 | |
| 118 | def main(args=None, locals_=None, banner=None): |
no test coverage detected