<22hp 100ap 110mv>'{yWhat the hell?
You say 'What the hell?'.
" // what is this?
<22hp 100ap 110mv>
$ cat test.lua
colors = {}
colors["{x"] = "COLORX"
colors["{y"] = "COLORY"
colors["{{"] = "{"
input = "This{x is {{ my {{x input {ystring"
output = string.gsub(input, "{.", colors)
print(output)
$ lua test.lua
ThisCOLORX is { my {x input COLORYstring
I'm using Lua to run my color conversion, and then appending that output to the buffer.
However, it seems as though something is wrong with the length because it's a few characters short each time.
So, if there's a room full of mobs, they blend together like this: