diff options
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') |