def get_link_pages(links):
        """
        Given a list of links, separate them into pages that can be displayed
        to the user and navigated using the 1-9 and 0 number keys.
        """
        link_pages = []
        i = 0
        while i < len(links):
            link_page = []
            while i < len(links) and len(link_page) < 10:
                link_page.append(links[i])
                i += 1
            link_pages.append(link_page)
        return link_pages

        Given a list of links, separate them into pages that can be displayed
        to the user and navigated using the 1-9 and 0 number keys.
        
rtv/terminal.py