Exemple #1
0
def show_document(document):
    """ (Document) -> None    """

    print_okblue(document.title)
    print_okblue('-'*len(document.title))
    text = format_text_width(document.text,WIDTH)
    paginate(text,PAGINATE)
    show_break(1)
Exemple #2
0
def show_options(state):
    """ (int) -> None
    """
    options = { 0: '(S)tart',
                1: '(V)iew (N)ext',
                2: '(R)elevant (N)ot Relevant (U)nsure',
    }

    print_okblue(center_text(options[state],WIDTH))
Exemple #3
0
def show_pause(reason=None):
    if reason:
        print_fail(reason)
    print_okblue(center_text('Press enter to continue',WIDTH))
    raw_input()
Exemple #4
0
def show_snippet(document):
    """ (Document) --> None """
    print_okblue(document.title)
    print_okblue('-'*len(document.title))
    print format_text_width(document.snippet,WIDTH)