Allow additional ansi mappings to be passed from settings for easier customization.

This commit is contained in:
Tehom 2017-02-10 07:15:12 -05:00 committed by Griatch
parent 80f7bb1cb5
commit f263ea2aaa
2 changed files with 5 additions and 1 deletions

View file

@ -414,6 +414,7 @@ class ANSIParser(object):
(r'|[W', ANSI_BACK_WHITE), # light grey background
(r'|[X', ANSI_BACK_BLACK) # pure black background
]
ext_ansi_map += settings.ADDITIONAL_ANSI_MAPPINGS
ansi_bright_bgs = [
# "bright" ANSI backgrounds using xterm256 since ANSI