Current the Lua command to echo to the terminal uses the interpreters echo (which is mainly used for echoing text that's incoming from the game). This needs to be changed to construct it's own line that disregards the previous color from the mud (this will both preserve the correct ANSI color for incoming mud text but allow the Lua script to echo whatever it needs in whatever color it needs.
The bug is, when you echo something in Lua it keeps showing the previous color sent from the mud.
Current the Lua command to echo to the terminal uses the interpreters echo (which is mainly used for echoing text that's incoming from the game). This needs to be changed to construct it's own line that disregards the previous color from the mud (this will both preserve the correct ANSI color for incoming mud text but allow the Lua script to echo whatever it needs in whatever color it needs.
The bug is, when you echo something in Lua it keeps showing the previous color sent from the mud.