136
138
colorize('hello', fg='red', bg='blue', opts=('blink',))
138
140
colorize('goodbye', opts=('underscore',))
139
print colorize('first line', fg='red', opts=('noreset',))
141
print(colorize('first line', fg='red', opts=('noreset',)))
144
146
color_names = ('black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white')
145
147
foreground = dict([(color_names[x], '3%s' % x) for x in range(8)])