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

Method scroll_down

pye.py:213–218  ·  view source on GitHub ↗
(self, scrolling)

Source from the content-addressed store, hash-verified

211 self.goto(0, 0)
212 self.wr(Editor.TERMCMD[9] * scrolling)
213 def scroll_down(self, scrolling):
214 if Editor.TERMCMD[10]:
215 Editor.scrbuf[:-scrolling] = Editor.scrbuf[scrolling:]
216 Editor.scrbuf[-scrolling:] = [''] * scrolling
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()

Callers 2

move_downMethod · 0.95
handle_edit_keysMethod · 0.95

Calls 2

gotoMethod · 0.95
wrMethod · 0.45

Tested by

no test coverage detected