def insert_lines(self, count=None):
        count = count or 1
        top, bottom = self.margins

        data_buffer = self.data_buffer
        line_offset = self.line_offset
        pt_cursor_position = self.pt_cursor_position

        # If cursor is outside scrolling margins it -- do nothing.
        if top <= pt_cursor_position.y - self.line_offset <= bottom:
            for line in range(bottom, pt_cursor_position.y - line_offset, -1):
                if line - count < top:
                    data_buffer.pop(line + line_offset, None)
                else:
                    data_buffer[line + line_offset] = data_buffer[line + line_offset - count]
                    data_buffer.pop(line + line_offset - count, None)

            self.carriage_return()
Inserts the indicated # of lines at line with cursor. Lines
dataset/ETHPy150Open jonathanslenders/pymux/pymux/screen.py/BetterScreen.insert_lines