summaryrefslogtreecommitdiff
path: root/examples/basic.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/basic.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/basic.py')
-rwxr-xr-xexamples/basic.py4
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