selfsame/mud.tilde.town — pull request #25 by fried (2014-12-18 04:08:07+00:00)
Title: Improved colors.py

colors.py had bold code in every color, and there was 256 color codes mixed in without known support from the client.

I removed the two 256 color codes for some future implementation date, need a good way to downgrade the colors to ansi

I added the style() command, which can take text with $CODE and turn it into ANSI escapes.
```style('${red}nose')```
instead of
```color('red') + 'nose' + color('reset')```
or
```wrap('nose', color('red'))```
but all methods still work.

Also style compresses adjacent ansi escape codes into a single escape
provided unstyle to strip ansi codes from text