pg.decolor

Accessible via pg.decolor, pg.utils.decolor.

decolor(text)[source]

De-colors a string that may contains ANSI color characters.

Return type:

str