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)
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))
def show_pause(reason=None): if reason: print_fail(reason) print_okblue(center_text('Press enter to continue',WIDTH)) raw_input()
def show_snippet(document): """ (Document) --> None """ print_okblue(document.title) print_okblue('-'*len(document.title)) print format_text_width(document.snippet,WIDTH)