I've improved on that so you don't have to put in a special char. All you do is strip out the TELNET_GA command that the driver inserts. BTW Wodan, if I didn't strip it out this command it stops output on my client (TF v5.0 beta 6).
Edit update: Seems it is a known problem for TF.
Please note: This is only relevant to code for the FluffOS driver. MudOS doesn't have this problem/feature.
mapping Uncolor = ([ "RESET": "", "BOLD": "", "FLASH":"", "BLACK":"", "RED":"",
"BLUE":"", "CYAN":"", "MAGENTA":"", "ORANGE":"", "YELLOW":"",
"GREEN":"", "WHITE":"", "BLACK":"", "B_RED":"", "B_ORANGE":"",
"B_YELLOW":"", "B_BLACK":"", "B_CYAN":"","B_WHITE":"", "B_GREEN":"",
"B_MAGENTA":"", "STATUS":"", "WINDOW":"", "INITTERM": "",
"ENDTERM":""]);
/* \xff\xf9 is the telnet code command for TELNET_GA
* Google for it if you want to know what it does.
*/
string strip_colours(string str){
string ret = terminal_colour(str, Uncolor);
return replace_string(ret, "\xff\xf9", "");
}
Tricky