I would like to have a more colorful Python hint in the terminal, just for readability. I currently have:
sys.ps1 = '\033[96m>>> \033[0m' sys.ps2 = '\033[96m... \033[0m'
in my PYTHONSTARTUP
file, which gives it colors as desired. However, any text above the line does not wrap properly. The text goes to the end of the line, and instead of immediately starting a new line, it starts overwriting the beginning of the first line before starting a new line. As you can imagine, this is actually pretty impenetrable. How can I fix this behavior?
source share