clt test
System Message:
GMCP event <gmcp.Comm> display(gmcp) to see the full content
System Message:
GMCP event <gmcp.Comm.Channel> display(gmcp) to see the full content
System Message:
GMCP event <gmcp.Comm.Channel.Text> display(gmcp) to see the full content
System Message:
GMCP event <gmcp.Comm> display(gmcp) to see the full content
System Message:
GMCP event <gmcp.Comm.Channel> display(gmcp) to see the full content
System Message:
GMCP event <gmcp.Comm.Channel.Start> display(gmcp) to see the full content
System Message:
GMCP event <gmcp.Comm> display(gmcp) to see the full content
System Message:
GMCP event <gmcp.Comm.Channel> display(gmcp) to see the full content
System Message:
GMCP event <gmcp.Comm.Channel.End> display(gmcp) to see the full content
Any suggestions on how to echo the text field to a miniconsole while keeping the colour?
I've created a table to convert ansi codes to colour tags, and experimented with string.find on the ansi codes themselves, but the text still has the backslashes \ escaping the quotes.
I've tried using selectString(line,1) on the gmcp.Comms.Channel.End event, but the line hasn't arrived yet so I just select the prompt before it. I've tried using moveCursor +1 to get the next line, but that can't work as the line doesn't exist yet.
I've tried doing:
gui.chancap_console_All:echo( gmcp.Comm.Channel.Text.text )
But the ansi codes show up in the miniconsole output.
Any hints?