environment/lib/python2.7/site-packages/IPython/core/page.py
def page_dumb(strng, start=0, screen_lines=25):
    """Very dumb 'pager' in Python, for when nothing else works.

    Only moves forward, same interface as page(), except for pager_cmd and
    mode."""

    out_ln  = strng.splitlines()[start:]
    screens = chop(out_ln,screen_lines-1)
    if len(screens) == 1:
        print >>io.stdout, os.linesep.join(screens[0])
    else:
        last_escape = ""
        for scr in screens[0:-1]:
            hunk = os.linesep.join(scr)
            print >>io.stdout, last_escape + hunk
            if not page_more():
                return
            esc_list = esc_re.findall(hunk)
            if len(esc_list) > 0:
                last_escape = esc_list[-1]
        print >>io.stdout, last_escape + os.linesep.join(screens[-1])
def page_dumb(strng, start=0, screen_lines=25):
    out_ln  = strng.splitlines()[start:]
    screens = chop(out_ln,screen_lines-1)
    if len(screens) == 1:
        print >>io.stdout, os.linesep.join(screens[0])
    else:
        last_escape = ""
        for scr in screens[0:-1]:
            hunk = os.linesep.join(scr)
            print >>io.stdout, last_escape + hunk
            if not page_more():
                return
            esc_list = esc_re.findall(hunk)
            if len(esc_list) > 0:
                last_escape = esc_list[-1]
        print >>io.stdout, last_escape + os.linesep.join(screens[-1])
def page_dumb ( strng , start = 0 , screen_lines = 25 ) : out_ln = strng . splitlines ( ) [ start : ] screens = chop ( out_ln , screen_lines - 1 ) if len ( screens ) == 1 : print >> io . stdout , os . linesep . join ( screens [ 0 ] ) else : last_escape = "" for scr in screens [ 0 : - 1 ] : hunk = os . linesep . join ( scr ) print >> io . stdout , last_escape + hunk if not page_more ( ) : return esc_list = esc_re . findall ( hunk ) if len ( esc_list ) > 0 : last_escape = esc_list [ - 1 ] print >> io . stdout , last_escape + os . linesep . join ( screens [ - 1 ] )
Very dumb 'pager' in Python, for when nothing else works.

    Only moves forward, same interface as page(), except for pager_cmd and
    mode.
Very dumb pager in Python for when nothing else works .