in memory_analyzer/frontend/memanz_curses.py [0:0]
def scroll_down(self, user_select):
if (
user_select in [curses.KEY_DOWN, ord("s"), ord("j")]
and self.position + self.height <= self.bottom
):
self.position += self.DOWN
elif user_select == ord("G") and self.position + self.height != self.bottom:
self.position = self.bottom - self.height + 1
elif user_select == curses.KEY_NPAGE:
if self.position + self.height < self.bottom - self.height:
self.position = self.position + self.height
else:
self.position = self.bottom - self.height + 1