python-tabulate icon indicating copy to clipboard operation
python-tabulate copied to clipboard

Coloring output with blessed module

Open ajgringo619 opened this issue 1 year ago • 0 comments

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?

ajgringo619 avatar May 30 '23 01:05 ajgringo619