diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2020-02-06 23:52:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-06 23:52:31 -0500 |
commit | 3f075900264fee32c356aac3d03b2568664ba684 (patch) | |
tree | 81a8935b7a2b8ea1c7ba429a3bde25db9c33deee /examples/pirate.py | |
parent | 3c627af7c1e22bcd0cd0a49dee05fd6b626bccc5 (diff) | |
parent | 138c28d18cee56ae09416cc00d2d461e983d90e8 (diff) | |
download | cmd2-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-x | examples/pirate.py | 2 |
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 |