You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However if in said container I run a Python3 prompt, it works fine:
$ python3
Python 3.6.8 (default, Jan 24 2019, 16:36:30)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import colorful
>>> print(colorful.red('red {0} red'.format(colorful.white('white'))))
red white red <---------------- colored adequatly
I tried to force color in my container using -e TERM=xterm-256color without success.
The text was updated successfully, but these errors were encountered:
okay, i kinda misled you, you actually need to pipe your prompt to terminal with >/dev/tty. i just did edit:prompt = { python3 prompt.py >/dev/tty } and it now displays properly.
related: timofurrer/colorful#26
When running in a docker I get ANSI colour code instead of the color should get thanks to
colorful
module.However if in said container I run a Python3 prompt, it works fine:
I tried to force color in my container using
-e TERM=xterm-256color
without success.The text was updated successfully, but these errors were encountered: