Skip to content

Releases: kennethreitz/crayons

v0.4.0

26 Aug 21:33
b1b78c9
Compare
Choose a tag to compare
  • Check that sys.stdout object has isatty attribute in addition to it being True
    • If using a custom object that does not have the isatty attribute and you would still like color, you can set the CLINT_FORCE_COLOR environment variable

v0.3.1

07 Jun 02:02
Compare
Choose a tag to compare

Bugfixes

  • Explicitly set incoming parameter to crayons to string (so that len, etc. work as expected)

v0.3.0

09 Oct 18:40
Compare
Choose a tag to compare

Breaking:

  • Rewrites clean to just remove ANSI codes, not whatever it was doing before (which seemed to be stripping all characters from the string)

Features:

  • Adds random function to get a random color (thanks @azillion)
  • Adds replace_color function to allow setting replacement for a given color (e.g. replace blue with magneta) (thanks @frostming)
  • Adds reset_replace_color to reset any replacement colors set