diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-09-26 12:54:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-26 12:54:40 -0400 |
commit | 303733526d7335133f7f2dc55f54dca410a9f1de (patch) | |
tree | 72cdffa820e29e15b32f6aa88a173c50ee1218c9 /cmd2/constants.py | |
parent | 982d2f2c2b91c04ecd2ba45dc2f6e1d26d77e4c1 (diff) | |
parent | 354cee41b786a7e4088512aa1a95dfce8da89935 (diff) | |
download | cmd2-git-303733526d7335133f7f2dc55f54dca410a9f1de.tar.gz |
Merge pull request #516 from python-cmd2/colorize
Colorize
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 d3e8a125..3c133b70 100644 --- a/cmd2/constants.py +++ b/cmd2/constants.py @@ -17,3 +17,8 @@ REDIRECTION_TOKENS = [REDIRECTION_PIPE, REDIRECTION_OUTPUT, REDIRECTION_APPEND] ANSI_ESCAPE_RE = re.compile(r'\x1b[^m]*m') LINE_FEED = '\n' + +# values for colors setting +COLORS_NEVER = 'Never' +COLORS_TERMINAL = 'Terminal' +COLORS_ALWAYS = 'Always' |