diff options
Diffstat (limited to 'examples/basic.py')
-rwxr-xr-x | examples/basic.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/basic.py b/examples/basic.py index 37db6501..5df3d1b5 100755 --- a/examples/basic.py +++ b/examples/basic.py @@ -9,7 +9,7 @@ 6) Shell-like capabilities """ import cmd2 -from cmd2 import style +from cmd2 import style, fg, bg class BasicApp(cmd2.Cmd): @@ -19,7 +19,7 @@ class BasicApp(cmd2.Cmd): super().__init__(multiline_commands=['echo'], persistent_history_file='cmd2_history.dat', startup_script='scripts/startup.txt', use_ipython=True) - self.intro = style('Welcome to PyOhio 2019 and cmd2!', fg='red', bg='white', bold=True) + ' 😀' + self.intro = style('Welcome to PyOhio 2019 and cmd2!', fg=fg.red, bg=bg.white, bold=True) + ' 😀' # Allow access to your application in py and ipy via self self.self_in_py = True |