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

Bash color #18

Closed
GoogleCodeExporter opened this issue Sep 1, 2015 · 7 comments
Closed

Bash color #18

GoogleCodeExporter opened this issue Sep 1, 2015 · 7 comments

Comments

@GoogleCodeExporter
Copy link

Hi,

Do you think it could be easy to espace bash color codes like that ?

'\033[1;37;40mHello World\033[2;32;40m'

Cause at this time, prettytable count each characters to set column width.

Best regards,
Socketubs.

Original issue reported on code.google.com by geoff...@lehee.name on 26 Oct 2012 at 9:36

@GoogleCodeExporter
Copy link
Author

This is a good idea, thanks for making me aware of it.  I will endeavour to get 
this feature in a future version.

Original comment by luke@maurits.id.au on 31 Oct 2012 at 5:58

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Issue 25 has been merged into this issue.

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

@GoogleCodeExporter
Copy link
Author

I have made an update in trunk which should solve your problems.  If you have 
time to test it out, that would be great.

Original comment by luke@maurits.id.au on 19 Feb 2013 at 5:36

@GoogleCodeExporter
Copy link
Author

Works like a charm!
Thanks luke.

Original comment by geoff...@lehee.name on 19 Feb 2013 at 8:58

@GoogleCodeExporter
Copy link
Author

Splendid!  Thanks for testing.  This was actually much easier to sort out than 
I expected, I regret not giving it a shot earlier - it may have made it into 
0.7 if I had!  I have made a few other small improvements lately so I might do 
a 0.7.1 release this coming weekend which will include the colour code support.

Original comment by luke@maurits.id.au on 20 Feb 2013 at 7:44

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

It's a great news!

Original comment by geoff...@lehee.name on 20 Feb 2013 at 8:56

@GoogleCodeExporter
Copy link
Author

Hi! I have one question related to this issue.

I have to colorize some chars of a string which is into a cell. How can I do 
this?

I've tried this sentence:
table.add_row(["Destination Address", '\033[1;38mpacket1.addr1\033[1;m', 
packet2.addr1])

But it isnt't working.

Thanks in advance!

Original comment by capitan....@gmail.com on 21 Oct 2013 at 12:22

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