You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, seems like the colors are messed up...
I've copied your example code and ran it on my machine and in an isolated venv with the same result:
importcolorfulascf# create a colored string using clever method translationprint(cf.bold_white('Hello World'))
# create a colored string using `str.format()`print('{c.bold}{c.lightCoral_on_white}Hello World{c.reset}'.format(c=cf))
# nest colorsprint(cf.red('red {0} red'.format(cf.white('white'))))
print(cf.red('red'+cf.white(' white ', nested=True) +'red'))
# combine styles with stringsprint(cf.bold&cf.red|'Hello World')
# use true colorscf.use_true_colors()
# extend default color palettecf.update_palette({'mint': '#c5e8c8'})
print(cf.mint_on_snow('Wow, this is actually mint'))
# choose a predefined stylecf.use_style('solarized')
# print the official solarized colorsprint(cf.yellow('yellow'), cf.orange('orange'),
cf.red('red'), cf.magenta('magenta'),
cf.violet('violet'), cf.blue('blue'),
cf.cyan('cyan'), cf.green('green'))
# directly print with colorscf.print('{c.bold_blue}Hello World{c.reset}')
# choose specific color mode for one blockwithcf.with_8_ansi_colors() asc:
print(c.bold_green('colorful is awesome!'))
# create and choose your own color paletteMY_COMPANY_PALETTE= {
'companyOrange': '#f4b942',
'companyBaige': '#e8dcc5'
}
withcf.with_palette(MY_COMPANY_PALETTE) asc:
print(c.companyOrange_on_companyBaige('Thanks for choosing our product!'))
# use f-string (only Python >= 3.6)print(f'{cf.bold}Hello World')
# support for chineseprint(cf.red('你好'))
Description
Hi there, seems like the colors are messed up...
I've copied your example code and ran it on my machine and in an isolated venv with the same result:
And it shows the following:
Environment
colorama==0.4.4
,colorful==0.5.4
Really appreciate the module, hit me up if you need further information!!!
The text was updated successfully, but these errors were encountered: