Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Modified async_alert_str to also get passed the number of terminal columns ↵ | Todd Leonhardt | 2019-07-01 | 1 | -9/+5 |
| | | | | and added unit tests for it | ||||
* | Refactored ansi.async_alert_str() so that the cursor offset within the ↵ | Todd Leonhardt | 2019-06-30 | 1 | -4/+3 |
| | | | | | | readline buffer is passed in This way, the function is independent of readline and can more easily be unit tested | ||||
* | Initial changes for encapsulation of colorama usage within ansi.py | Todd Leonhardt | 2019-06-30 | 1 | -0/+74 |
| | | | | | | | | | | | | | | | Changes include: - ansi.py is now the only cmd2 code which depends on colorama - cmd2 tests no longer rely on colorama - Added new functions to ansi.py: - async_alert_str() - set_title_str - Added unit test for set_title_str TODO: - Refactor async_alert_str so cursor position is passed in and import from rl_utils is no longer required - Add unit test(s) for async_alert_str - Refactor FG_COLORS and BG_COLORS in ansi.py to not use constants from colorama | ||||
* | Minor fix to docstring of ansi.style() | Todd Leonhardt | 2019-06-28 | 1 | -2/+2 |
| | |||||
* | Updated Sphinx documentation and README.md | Todd Leonhardt | 2019-06-28 | 1 | -4/+4 |
| | |||||
* | Moved RESET to end of color dictionaries and skip a test on Mac since it is ↵ | Todd Leonhardt | 2019-06-28 | 1 | -2/+2 |
| | | | | unreliable on Azure DevOps CI | ||||
* | Simplified ansi color dictionaries and lookup methods | Todd Leonhardt | 2019-06-27 | 1 | -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 functions | Todd Leonhardt | 2019-06-27 | 1 | -28/+63 |
| | |||||
* | Moved cmd2.Cmd._decolorized_write() to ansi.py and renamed it to ↵ | Kevin Van Brunt | 2019-06-27 | 1 | -6/+19 |
| | | | | ansi_aware_write(). | ||||
* | Made allow_ansi an application-wide setting and moved it to ansi.py | Kevin Van Brunt | 2019-06-27 | 1 | -0/+8 |
| | |||||
* | Renamed colors setting to allow_ansi | Kevin Van Brunt | 2019-06-26 | 1 | -8/+8 |
| | |||||
* | Updated documentation | Kevin Van Brunt | 2019-06-26 | 1 | -2/+4 |
| | |||||
* | Changed default styles to use a more flexible approach which could be used ↵ | Kevin Van Brunt | 2019-06-26 | 1 | -49/+13 |
| | | | | to call any function to add style | ||||
* | Changed signature of style() to allow for simpler calling and overriding of ↵ | Kevin Van Brunt | 2019-06-26 | 1 | -12/+39 |
| | | | | settings in a provided TextStyle | ||||
* | Combined some logic in style | Kevin Van Brunt | 2019-06-26 | 1 | -20/+23 |
| | |||||
* | Added TextStyle class and default implementations for various message types ↵ | Kevin Van Brunt | 2019-06-26 | 1 | -18/+38 |
| | | | | like Warning, Error, and Succes | ||||
* | Moved code related to ANSI escape codes to new file called ansi.py | Kevin Van Brunt | 2019-06-26 | 1 | -0/+118 |