python-tabulate
python-tabulate copied to clipboard
Coloring output with blessed module
I think I'm running into the issue mentioned under ANSI Support. When using the blessed module for coloring, the column widths are way off, so I checked the actual string and it's something like this:
f"{term.green}testing{term.normal}" --> '\x1b[32mtesting\x1b(B\x1b[m'
I've used the escape sequences, and they were fine. But since I'm already using blessed, I wanted my code to be uniform. Is there anything I can do to work around this?