summaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2020-02-06 21:28:06 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2020-02-06 21:28:06 -0500
commitede9f3e77a59281a442227ed9b4b92e62e85d2b9 (patch)
treeb87239799cf71c67704d3ffe7bc0879d57056d3e /CHANGELOG.md
parentc7ac2e965d025806ce5baddfc718814e3e58d639 (diff)
downloadcmd2-git-ede9f3e77a59281a442227ed9b4b92e62e85d2b9.tar.gz
Added convenience `ansi.fg` and `ansi.bg` enums of foreground and background colors which style() can now optionally use
This is to make it easier to autocomplete color names in an IDE
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 77ba6b00..07225efc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,10 @@
* Enhancements
* Changed the default help text to make `help -v` more discoverable
* Added `add_settable()` and `remove_settable()` convenience methods to update `self.settable` dictionary
+ * Added convenience `ansi.fg` and `ansi.bg` enums of foreground and background colors
+ * `ansi.style()` `fg` argument can now either be of type `str` or `ansi.fg`
+ * `ansi.style()` `bg` argument can now either be of type `str` or `ansi.bg`
+ * This supports IDE auto-completion of color names
* Breaking changes
* Renamed `locals_in_py` attribute of `cmd2.Cmd` to `self_in_py`
* The following public attributes of `cmd2.Cmd` are no longer settable at runtime by default: