Quote:
How would your idea work the with option to convert IAC EOR/GA turned on?
First, this post shows a plugin that assembles lines from packets, this may help in writing the plugin:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=5020
Second, to answer your question, a simple regexp or "find-and-replace" could do what MUSHclient does itself, except in the (probably very rare) case of the IAC EOR being split between two packets.
eg. In Lua:
packet = string.gsub (packet, "\255\239", "\n") -- convert IAC/EOR to newline
packet = string.gsub (packet, "\255\249", "\n") -- convert IAC/GA to newline
Quote:
I think most of us where thinking:
1. recieve packet.
2. Is this a complete line? If no, then 1.
Shadowfyr, the problem with your suggestion, which the very early version of MUSHclient did, is that one of the first thing that arrives from most MUDs is something like this:
Enter your character's name, or type new:
Note the absence of the newline. Your suggestion would keep that in the "pending" box (because no newline had arrived), the player would not see it, he would not enter his name, and he would be unable to play.
|