Classes | Functions | Variables
roscompile.terminal Namespace Reference

Classes

class  ColorFallback
 

Functions

def color_diff (diff)
 
def color_header (s, fore='WHITE', back='BLUE')
 
def color_text (s, fore='YELLOW')
 
def query_yes_no (question, default="no")
 

Variables

 Back
 
 columns
 
 Fore
 
 rows
 

Function Documentation

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.

Variable Documentation

roscompile.terminal.Back

Definition at line 9 of file terminal.py.

roscompile.terminal.columns

Definition at line 11 of file terminal.py.

roscompile.terminal.Fore

Definition at line 9 of file terminal.py.

roscompile.terminal.rows

Definition at line 11 of file terminal.py.



roscompile
Author(s):
autogenerated on Wed Jun 19 2019 19:56:53