diff options
Diffstat (limited to 'cmd2/constants.py')
-rw-r--r-- | cmd2/constants.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd2/constants.py b/cmd2/constants.py index cfdf7624..6784264f 100644 --- a/cmd2/constants.py +++ b/cmd2/constants.py @@ -2,6 +2,11 @@ # 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') |