Just display, no paging. screen_lines is ignored.
(strng, start=0, screen_lines=25)
| 33 | |
| 34 | |
| 35 | def display_page(strng, start=0, screen_lines=25): |
| 36 | """Just display, no paging. screen_lines is ignored.""" |
| 37 | if isinstance(strng, dict): |
| 38 | data = strng |
| 39 | else: |
| 40 | if start: |
| 41 | strng = u'\n'.join(strng.splitlines()[start:]) |
| 42 | data = { 'text/plain': strng } |
| 43 | display(data, raw=True) |
| 44 | |
| 45 | |
| 46 | def as_hook(page_func): |