summaryrefslogtreecommitdiff
path: root/cmd2/ansi.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-02-11 22:40:40 -0500
committerGitHub <noreply@github.com>2020-02-11 22:40:40 -0500
commitad0e2ae0d0d426fe08353fd82d1f9ff051be9108 (patch)
treeb70651e59a58c38d6999a98de9a86ded4625ea1b /cmd2/ansi.py
parent8d9f97bdcaacf8465e8fe61f64e5d22753cc415c (diff)
parenta00fd703819920a5afe3b41951be5b3250ecd2a8 (diff)
downloadcmd2-git-ad0e2ae0d0d426fe08353fd82d1f9ff051be9108.tar.gz
Merge pull request #886 from python-cmd2/truncate_with_style
truncate_line not handling style sequences
Diffstat (limited to 'cmd2/ansi.py')
-rw-r--r--cmd2/ansi.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd2/ansi.py b/cmd2/ansi.py
index 2813d62f..eac2bd3a 100644
--- a/cmd2/ansi.py
+++ b/cmd2/ansi.py
@@ -118,6 +118,7 @@ RESET_ALL = Style.RESET_ALL
INTENSITY_BRIGHT = Style.BRIGHT
INTENSITY_DIM = Style.DIM
INTENSITY_NORMAL = Style.NORMAL
+
# ANSI style sequences not provided by colorama
UNDERLINE_ENABLE = colorama.ansi.code_to_chars(4)
UNDERLINE_DISABLE = colorama.ansi.code_to_chars(24)