Closed RedlineBUPT closed 2 years ago
IDLE does not support ANSI escape codes so color won't work on IDLE. This is not an issue specific to objprint. Considering the very small user base of IDLE, we probably won't write special code just for IDLE. To get a workaround, just do op.config(color=False)
to turn off color.
When I use op() in Python IDLE Shell 3.9, I find IDLE can't display the correct color. However, PyCharm and cmd can display the correct color.