Lines Matching full:text
24 """A line of text output
27 text: Text line that was printed
28 newline: True to output a newline after the text
29 colour: Text colour to use
31 def __init__(self, text, newline, colour): argument
32 self.text = text
37 return 'newline=%s, colour=%s, text=%s' % (self.newline, self.colour,
38 self.text)
40 def Print(text='', newline=True, colour=None): argument
47 text: Text to print
48 newline: True to add a new line at the end of the text
49 colour: Colour to use for the text
52 print_test_list.append(PrintLine(text, newline, colour))
56 text = col.Color(colour, text)
57 print(text, end='')
82 """Print out the text lines collected"""
86 print(col.Color(line.colour, line.text), end='')
88 print(line.text, end='')
94 """Conditionally wraps text in ANSI color escape sequences."""
142 def Color(self, color, text, bright=True): argument
143 """Returns text with conditionally added color escape sequences.
146 color: Text color -- one of the color constants defined in this
148 text: The text to color.
151 If self._enabled is False, returns the original text. If it's True,
152 returns text with color escape sequences based on the value of
156 return text
162 return start + text + self.RESET