MCPcopy Create free account
hub / github.com/RetiredWizard/PyDOS / redraw

Method redraw

pye.py:219–233  ·  view source on GitHub ↗
(self, flag)

Source from the content-addressed store, hash-verified

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()

Callers 2

handle_edit_keysMethod · 0.95
edit_loopMethod · 0.95

Calls 5

cursorMethod · 0.95
scroll_regionMethod · 0.95
mouse_reportingMethod · 0.95
hash_bufferMethod · 0.95
get_screen_sizeMethod · 0.45

Tested by

no test coverage detected