Classes | |
class | ColorFallback |
Functions | |
def | color_diff |
def | color_header |
def | color_text |
def | query_yes_no |
def roscompile.terminal.color_diff | ( | diff | ) |
Definition at line 14 of file terminal.py.
def roscompile.terminal.color_header | ( | s, | |
fore = 'WHITE' , |
|||
back = 'BLUE' |
|||
) |
Definition at line 26 of file terminal.py.
def roscompile.terminal.color_text | ( | s, | |
fore = 'YELLOW' |
|||
) |
Definition at line 36 of file terminal.py.
def roscompile.terminal.query_yes_no | ( | question, | |
default = "no" |
|||
) |
Ask a yes/no question via raw_input() and return their answer. Based on http://code.activestate.com/recipes/577058/ "question" is a string that is presented to the user. "default" is the presumed answer if the user just hits <Enter>. It must be "yes" (the default), "no" or None (meaning an answer is required of the user). The "answer" return value is True for "yes" or False for "no".
Definition at line 40 of file terminal.py.