Message355097
I have a Python startup file that colorizes my prompt. This worked on Python 3.7, but breaks on Python 3.8. I'm on Windows using Powershell 6.2.3, but `cmd` does the same.
Maybe related, but the colorization also failed on Python 3.7 if a virtual environment was active.
I am using `colorama` to provide the ANSI color codes.
The startup files:
```
import sys
import colorama
colorama.init()
_GREEN = colorama.Fore.GREEN
_YELLOW = colorama.Fore.YELLOW
_RESET = colorama.Style.RESET_ALL
print("setting prompt, {}, {}, {}.".format(_GREEN, _YELLOW, _RESET))
sys.ps1 = "{}>>> {}".format(_GREEN, _RESET)
sys.ps2 = "{}... {}".format(_YELLOW, _RESET)
print()
``` |
|
Date |
User |
Action |
Args |
2019-10-21 18:22:57 | MinchinWeb | set | recipients:
+ MinchinWeb, paul.moore, tim.golden, zach.ware, steve.dower |
2019-10-21 18:22:57 | MinchinWeb | set | messageid: <1571682177.17.0.615459893721.issue38552@roundup.psfhosted.org> |
2019-10-21 18:22:57 | MinchinWeb | link | issue38552 messages |
2019-10-21 18:22:57 | MinchinWeb | create | |
|