gaogaotiantian / objprint

A library that can print Python objects in human readable format
Apache License 2.0
519 stars 43 forks source link

ANSI escape code in Python IDLE Shell 3.9 #75

Closed RedlineBUPT closed 2 years ago

RedlineBUPT commented 2 years ago

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.

image image image image

gaogaotiantian commented 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.