Adding colors in python interpreter prompt, does not wrap properly

后端 未结 2 853
渐次进展
渐次进展 2021-02-14 11:40

I would like to have a more colorful Python prompt in the terminal, just for readability. I currently have:

sys.ps1 = \'\\033[96m>>> \\033[0m\'
sys.ps2         


        
2条回答
  •  失恋的感觉
    2021-02-14 12:42

    Is there some reason to not use IPython? IPython does provide color prompts, etc. out of the box...

提交回复
热议问题