diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-04-27 14:22:17 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-04-27 14:22:17 -0400 |
commit | 9019944689dbe36c00dfde7372e5075a8350bfb5 (patch) | |
tree | c7072b494d59b75a660be7114afcf3a6ac2c5d64 /cmd2/constants.py | |
parent | 0d4cf470486ca20f9c7d6580161a3ff689172523 (diff) | |
parent | 1306eebade58d7ffe5d0ab4008006b7fb3501b54 (diff) | |
download | cmd2-git-9019944689dbe36c00dfde7372e5075a8350bfb5.tar.gz |
Merge branch 'master' into ply
Diffstat (limited to 'cmd2/constants.py')
-rw-r--r-- | cmd2/constants.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cmd2/constants.py b/cmd2/constants.py new file mode 100644 index 00000000..6784264f --- /dev/null +++ b/cmd2/constants.py @@ -0,0 +1,12 @@ +# +# coding=utf-8 +"""Constants and definitions""" + +import re + +# Used for command parsing, tab completion and word breaks. Do not change. +QUOTES = ['"', "'"] +REDIRECTION_CHARS = ['|', '<', '>'] + +# Regular expression to match ANSI escape codes +ANSI_ESCAPE_RE = re.compile(r'\x1b[^m]*m') |