diff options
Diffstat (limited to 'examples/basic.py')
-rwxr-xr-x | examples/basic.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/basic.py b/examples/basic.py index 8f507e03..167dee80 100755 --- a/examples/basic.py +++ b/examples/basic.py @@ -10,8 +10,8 @@ """ import cmd2 from cmd2 import ( - bg, - fg, + StdBg, + StdFg, style, ) @@ -27,7 +27,7 @@ class BasicApp(cmd2.Cmd): include_ipy=True, ) - self.intro = style('Welcome to PyOhio 2019 and cmd2!', fg=fg.red, bg=bg.white, bold=True) + ' 😀' + self.intro = style('Welcome to PyOhio 2019 and cmd2!', fg=StdFg.RED, bg=StdBg.WHITE, bold=True) + ' 😀' # Allow access to your application in py and ipy via self self.self_in_py = True |