Replace colorama dependency #958
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'd like to do and why
colorama, a borgmatic dependency for colorizing terminal output, is no longer super actively maintained and has potentially caused some borgmatic issues (#956, #827). So as part of this ticket, consider replacing it with another library to colorize borgmatic's terminal output. Potentially something actively maintained like Rich (which incidentally is an order of magnitude larger than colorama and includes a bunch of functionality we don't currently need).
Other notes / implementation ideas
No response
Implemented in main by dropping colorama, replacing its color constants with our own and then adding a tiny bit of code to convert a color to the corresponding ANSI escape code. So to be clear, no other library was added in place of colorama; I was able to just remove it.
This will be part of the next release.
Released in borgmatic 1.9.5!