summaryrefslogtreecommitdiff
path: root/cmd2/ansi.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Moved RESET to end of color dictionaries and skip a test on Mac since it is ↵Todd Leonhardt2019-06-281-2/+2
| | | | unreliable on Azure DevOps CI
* Simplified ansi color dictionaries and lookup methodsTodd Leonhardt2019-06-271-32/+24
| | | | | | | Also: - Updated examples that use color to use cmd2.ansi instead of colorama - Updated tests that use color to use cmd2.ansi instead of colorama - plumbum_colorspy example shows how to override color lookup functions to use a different color library
* Added fg_lookup() and bg_lookup() two-stage color lookup functionsTodd Leonhardt2019-06-271-28/+63
|
* Moved cmd2.Cmd._decolorized_write() to ansi.py and renamed it to ↵Kevin Van Brunt2019-06-271-6/+19
| | | | ansi_aware_write().
* Made allow_ansi an application-wide setting and moved it to ansi.pyKevin Van Brunt2019-06-271-0/+8
|
* Renamed colors setting to allow_ansiKevin Van Brunt2019-06-261-8/+8
|
* Updated documentationKevin Van Brunt2019-06-261-2/+4
|
* Changed default styles to use a more flexible approach which could be used ↵Kevin Van Brunt2019-06-261-49/+13
| | | | to call any function to add style
* Changed signature of style() to allow for simpler calling and overriding of ↵Kevin Van Brunt2019-06-261-12/+39
| | | | settings in a provided TextStyle
* Combined some logic in styleKevin Van Brunt2019-06-261-20/+23
|
* Added TextStyle class and default implementations for various message types ↵Kevin Van Brunt2019-06-261-18/+38
| | | | like Warning, Error, and Succes
* Moved code related to ANSI escape codes to new file called ansi.pyKevin Van Brunt2019-06-261-0/+118