summaryrefslogtreecommitdiff
path: root/examples/pirate.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2020-02-06 22:50:00 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2020-02-06 22:50:00 -0500
commite66dc6f7078e1d4928ef58ccf48f4718b61d8c35 (patch)
treeefbdf93ee7c44acce04cd6758eee4c155838001f /examples/pirate.py
parentede9f3e77a59281a442227ed9b4b92e62e85d2b9 (diff)
downloadcmd2-git-e66dc6f7078e1d4928ef58ccf48f4718b61d8c35.tar.gz
Having two parallel datastructures each for foreground and background colors felt really clunky - now we just have one
The Enum classes are now smart and deal with it all.
Diffstat (limited to 'examples/pirate.py')
-rwxr-xr-xexamples/pirate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pirate.py b/examples/pirate.py
index acbab17c..a50f9a51 100755
--- a/examples/pirate.py
+++ b/examples/pirate.py
@@ -25,7 +25,7 @@ class Pirate(cmd2.Cmd):
self.songcolor = 'blue'
# Make songcolor settable at runtime
- self.add_settable(cmd2.Settable('songcolor', str, 'Color to ``sing``', choices=cmd2.ansi.FG_COLORS))
+ self.add_settable(cmd2.Settable('songcolor', str, 'Color to ``sing``', choices=cmd2.ansi.fg.colors()))
# prompts and defaults
self.gold = 0