def _scroll(self, lines):
            if lines < 0:
                sys.stdout.write("{}{}".format(
                    curses.tparm(self._move_y_x, 0, 0).decode("utf-8"),
                    self._up_line * -lines))
            else:
                sys.stdout.write("{}{}".format(curses.tparm(
                    self._move_y_x, self.height, 0).decode("utf-8"),
                    self._down_line * lines))
Scroll the window up or down.
dataset/ETHPy150Open peterbrittain/asciimatics/asciimatics/screen.py/_CursesScreen._scroll