diff options
Diffstat (limited to 'cmd2/constants.py')
-rw-r--r-- | cmd2/constants.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cmd2/constants.py b/cmd2/constants.py index cfe7eb6d..f0cdf816 100644 --- a/cmd2/constants.py +++ b/cmd2/constants.py @@ -4,6 +4,7 @@ import re +import colorama from colorama import Fore, Back # Used for command parsing, output redirection, tab completion and word @@ -70,4 +71,13 @@ BG_COLORS = { 'reset': Back.RESET, } + +# Underline style built upon Colorama class +class UnderlineStyle(colorama.ansi.AnsiCodes): + ENABLE = 4 + DISABLE = 24 + + +Underline = UnderlineStyle() + DEFAULT_SHORTCUTS = {'?': 'help', '!': 'shell', '@': 'run_script', '@@': '_relative_run_script'} |