Proof of concept for cmd2 ideas.
Context manager for the state of a rich.console.Console object. To help with use by a cmd2.Cmd class that has a console attribute.
The tests are scant at the moment, sorry about that.
pip install -e .
python -m cmd2_poc
(Cmd) help
(Cmd) err
(Cmd) perr
(Cmd) print hello worldpytest tests\test_state.py