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

Method scroll_up

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

Source from the content-addressed store, hash-verified

205 def scroll_region(self, stop):
206 self.wr(Editor.TERMCMD[11].format(stop=stop) if stop else Editor.TERMCMD[12])
207 def scroll_up(self, scrolling):
208 if Editor.TERMCMD[9]:
209 Editor.scrbuf[scrolling:] = Editor.scrbuf[:-scrolling]
210 Editor.scrbuf[:scrolling] = [''] * scrolling
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:]

Callers 2

move_upMethod · 0.95
handle_edit_keysMethod · 0.95

Calls 2

gotoMethod · 0.95
wrMethod · 0.45

Tested by

no test coverage detected