colour
index
/home/thindil/Projekty/anaria/server/lib/pymodules/colour.py

colour.py
 
NakedMud's base colour module. Contains functions for outbound text processing
to add ASCII colour codes to the text.

 
Modules
       
hooks
mud
mudsock

 
Functions
       
__unload__()
detaches our colour module from the game
process_colour_hook(info)
When outbound text is being processed, find colour codes and replace them
by the proper colour escape sequences.

 
Data
        base_colour_marker = '{'
base_colours = {'b': '34', 'c': '36', 'd': '30', 'g': '32', 'n': '0', 'p': '35', 'r': '31', 'w': '37', 'y': '33'}
cDARK = '0'
cLIGHT = '1'
c_blue = 'b'
c_cyan = 'c'
c_dark = 'd'
c_green = 'g'
c_magenta = 'p'
c_none = 'n'
c_red = 'r'
c_white = 'w'
c_yellow = 'y'
colour_start = '\x1b['