Closed jmsv closed 6 years ago
I'd suggest timofurrer/colorful. It seems to have better windows support.
Also, I think both crayons and colorful disable ANSI when piping.
$ python -c "import colorful;print(colorful.red('hello'))" > test.txt & cat test.txt
hello
$ python -c "import colorful;print(colorful.red('hello'))" | cat
hello
I think --plain
could still be useful though, maybe it could turn off the bullet points?
Colorful looks cool Do you think it would be a good idea to assign each language a colour/style?
Probably not, too many languages and not enough style combos
Yeah colorful looks good
--plain
could make origin lists use -
instead of bullet points maybe
ANSI replaced with colorful in 583ca75ebc1c388d87b86dc62260af401a66e840
PR #29 added bold formatting on input words:
This is cool :sunglasses: but not always desired, for example when piping to a file:
Flag to disable ANSI could be
-p
(--plaintext
), e.g.ANSI codes could be replaced with a library such as kennethreitz/crayons, which supports disabling colours etc. without too much extra code: