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
# dummyrunner for more information)
DUMMYRUNNER_SETTINGS_MODULE = "evennia.server.profiling.dummyrunner_settings"
# Additional mappings used to extend the existing Evennia ANSI mappings.
# All mappings should be a tuple of a string to one of the constants provided
# in ansi.py. For example, (r'%r', "\r\n")
ADDITIONAL_ANSI_MAPPINGS = []
# Mapping to extend Evennia's normal ANSI color tags. The mapping is a list of
# tuples mapping the tag to the ANSI convertion, like `("%c%r", ansi.ANSI_RED)`
# (the evennia.utils.ansi module contains all ANSI escape sequences). This is
# mainly supplied for support of legacy codebase tag formats.
COLOR_ANSI_EXTRA_MAP = []
######################################################################
# Default command sets
######################################################################

View file

@ -417,7 +417,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
ext_ansi_map += settings.COLOR_ANSI_EXTRA_MAP
ansi_bright_bgs = [
# "bright" ANSI backgrounds using xterm256 since ANSI