Rename ADDITIONA_ANSI_MAPPING to COLOR_ANSI_EXTRA_MAP to better match the settings naming scheme.

This commit is contained in:
Griatch 2017-02-12 10:52:51 +01:00
parent 982108da33
commit 61ffe5f9fa
2 changed files with 7 additions and 5 deletions

View file

@ -319,10 +319,12 @@ PROTOTYPE_MODULES = ["world.prototypes"]
# Module holding settings/actions for the dummyrunner program (see the # Module holding settings/actions for the dummyrunner program (see the
# dummyrunner for more information) # dummyrunner for more information)
DUMMYRUNNER_SETTINGS_MODULE = "evennia.server.profiling.dummyrunner_settings" DUMMYRUNNER_SETTINGS_MODULE = "evennia.server.profiling.dummyrunner_settings"
# Additional mappings used to extend the existing Evennia ANSI mappings. # Mapping to extend Evennia's normal ANSI color tags. The mapping is a list of
# All mappings should be a tuple of a string to one of the constants provided # tuples mapping the tag to the ANSI convertion, like `("%c%r", ansi.ANSI_RED)`
# in ansi.py. For example, (r'%r', "\r\n") # (the evennia.utils.ansi module contains all ANSI escape sequences). This is
ADDITIONAL_ANSI_MAPPINGS = [] # mainly supplied for support of legacy codebase tag formats.
COLOR_ANSI_EXTRA_MAP = []
###################################################################### ######################################################################
# Default command sets # Default command sets
###################################################################### ######################################################################

View file

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