summaryrefslogtreecommitdiff
path: root/examples/pirate.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2020-02-06 23:52:31 -0500
committerGitHub <noreply@github.com>2020-02-06 23:52:31 -0500
commit3f075900264fee32c356aac3d03b2568664ba684 (patch)
tree81a8935b7a2b8ea1c7ba429a3bde25db9c33deee /examples/pirate.py
parent3c627af7c1e22bcd0cd0a49dee05fd6b626bccc5 (diff)
parent138c28d18cee56ae09416cc00d2d461e983d90e8 (diff)
downloadcmd2-git-3f075900264fee32c356aac3d03b2568664ba684.tar.gz
Merge pull request #876 from python-cmd2/color_autocomplete
Added convenience enums of fg and bg colors
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