See the 'Before and After' example in the readme for enlightenment.
[1] https://github.com/erikrose/blessings
I co-maintain blessings and made the blessed fork because blessings development stalled by the primary maintainer 5 or more years ago
Also please mention rich another great library!
Best wishes all and make great CLI apps!! Happy Friday :)
https://blessed.readthedocs.io/en/latest/intro.html https://pypi.org/project/rich/
See the 'Before and After' example in the readme for enlightenment.
[1] https://github.com/erikrose/blessings