question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide a way to generate 'non colorized' colorized string

See original GitHub issue

This will make it easy to format output lines like:

line = 'beginning of line '
line += colorful.green('remainder of line is green')

Currently the example above creates an already-formatted string, which loses the ability to later on decide if to use the original text or the formatted one

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vmalloccommented, Apr 24, 2017

Cool! Thanks a lot! On Mon, 24 Apr 2017 at 11:19 Timo Furrer notifications@github.com wrote:

Closed #3 https://github.com/timofurrer/colorful/issues/3.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/timofurrer/colorful/issues/3#event-1054281502, or mute the thread https://github.com/notifications/unsubscribe-auth/AABwJqlORQPonZfyeoXa26xqJcxCuujXks5rzFsMgaJpZM4NAJ2b .

0reactions
timofurrercommented, Apr 24, 2017

The draft looks good IMO

Cool! I’ll close this issue for now - and release today a version with colorful.str() support.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Generate unique color from a string - Stack Overflow
You can't generate unique colors for strings: The RGB space has 24bits or 2^24-1 unique values (total of 16777215 colors).
Read more >
fazibear/colorize: Ruby string class extension. It add ... - GitHub
Ruby gem for colorizing text using ANSI escape sequences. Extends String class or add a ColorizedString with methods to set text color, background...
Read more >
Print Colors in Python terminal - GeeksforGeeks
In this article, we will cover how to print colored text in Python using several methods to output colored text to the terminal...
Read more >
String.prototype.fontcolor() - JavaScript - MDN Web Docs
The fontcolor() method creates a string that embeds a string in a element (str), which causes a string to be displayed in the...
Read more >
sass:color
Because darken() is usually not the best way to make a color darker, it's not included directly in the new module system. However,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found