lichess-bot
lichess-bot copied to clipboard
Text color garbled after game finishes, when on verbose mode
When using verbose mode (python lichess-bot.py -v), lichess-bot displays debug text lines, using different colors to differentiate different info. When game finishes, there is an incorrect change to default text color, leading to incorrect colored text from then on. Sometimes text color turns to dark blue, which makes text unreadable. Restarting is the only solution.
In the attached image, the default white text turns into cyan. Red arrows show incorrect color.
It seems that some color control code is set, but not unset.