(self, flag)
| 217 | self.goto(Editor.height - 1, 0) |
| 218 | self.wr(Editor.TERMCMD[10] * scrolling) |
| 219 | def redraw(self, flag): |
| 220 | self.cursor(False) |
| 221 | Editor.height, Editor.width = self.io_device.get_screen_size() |
| 222 | Editor.height -= 1 |
| 223 | Editor.scrbuf = [(False,"\x00")] * Editor.height |
| 224 | self.row = min(Editor.height - 1, self.row) |
| 225 | self.scroll_region(Editor.height) |
| 226 | self.mouse_reporting(True) |
| 227 | if flag: |
| 228 | self.message = PYE_VERSION |
| 229 | if is_micropython: |
| 230 | gc.collect() |
| 231 | if flag: |
| 232 | self.message += "{} Bytes Memory available".format(gc.mem_free()) |
| 233 | self.changed = '' if self.hash == self.hash_buffer() else '*' |
| 234 | def get_input(self): |
| 235 | while True: |
| 236 | in_buffer = self.io_device.rd() |
no test coverage detected