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/basic.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/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 |