diff options
author | Eric Lin <anselor@gmail.com> | 2018-04-27 22:57:47 -0400 |
---|---|---|
committer | Eric Lin <anselor@gmail.com> | 2018-04-27 22:57:47 -0400 |
commit | 452c396c1b3b417a1e085d5b4ab192bbc13d34b8 (patch) | |
tree | c1dce51fc4253a664c474bcff6e9b3801f1cf977 /cmd2/constants.py | |
parent | ae86103f6b8acf7765804382237564356f095b74 (diff) | |
parent | 1306eebade58d7ffe5d0ab4008006b7fb3501b54 (diff) | |
download | cmd2-git-452c396c1b3b417a1e085d5b4ab192bbc13d34b8.tar.gz |
Merge remote-tracking branch 'origin/master' into bash_completion
Updated argcomplete_bridge to use new constants/utils.
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') |