Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

termcolor support #25

Closed
GoogleCodeExporter opened this issue Sep 1, 2015 · 1 comment
Closed

termcolor support #25

GoogleCodeExporter opened this issue Sep 1, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

would be great if you could add support for termcolor so users can pass column 
values as

from termcolor import colored
from prettytable import PrettyTable
. . .
x.add_row([colored(my_var, 'red'), ... ])

if you do that currently, the value will be highlighted, the table formatting 
however will be broken

Original issue reported on code.google.com by mockba on 23 Jan 2013 at 8:48

@GoogleCodeExporter
Copy link
Author

I am going to merge this with Issue 18, as I think they are duplicates "under 
the hood".  As far as I can see, termcolor and Bash both use the same set of 
control characters to do colour control, so fixing that issue should fix this 
issue simultaneously.

I agree that it would be good to support this and I am going to make it a goal 
for 0.8.  I'm going to have to brush up on my regular expressions!

Original comment by luke@maurits.id.au on 17 Feb 2013 at 8:15

  • Changed state: Duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant