When I open a python shell with python
, can I have a colored output? For example red errors like you are used from IDEs?
>>> 10 * (1/0)
Traceback (most recent call last):
FIle "<stdin>", line 1, in <module>
ZeroDivisionError: integer division or modulo by zero
>>>
I both read man python
and python --help
, but didn't find anything regarding colours so I assume that there is nothing by default, but is it achievable anyway?
zsh
andfish
shells support it. But Python's shells don't provide any mechanism I know of, which supports it.