ANSI Color - a Drupal module

28
nov 2009
Excerpt from MUD log

Have you ever found yourself despairing over the hardship of producing colored, quality logs from your terminal? No? I kind of guessed not. If you are, however, one the few in this use case, then you are in luck!

I run a site called NoGFX, which is a community for MUD players. It's a few years old custom PHP system and I have been planning on porting it to Drupal for quite some time now. A big feature on the site is the ability to post in -game logs. Logs are created by the players various MUD clients and comes in all shapes and formats. One format is ANSI logs, which is the raw data that is sent from the server. In order to support this in the new Drupal based site, I decided to build an input filter.

In order to use this for your own website, here's what you do:

  • Download the module from the project page.

  • Install it as usual.

  • Visit admin/settings/filters and either choose to configure the input format you want to add ANSI Color to, or create a new one.

  • Scroll down to Filters and check ANSI Color to enable it for this format.

  • WARNING! Do not put the HTML filter after ANSI Color. Check the sequences for your format by visiting the Rearrange tab when editing your format.

Bug reports and feature requests are very much welcome in the issues queue.

Enjoy!

Kommentarer

Skriv ny kommentar

Innehållet i detta fält är privat och kommer inte att visas publikt.