*bump* :)<br><br><div><span class="gmail_quote">On 5/24/06, <b class="gmail_sendername">Patrick M. Nielsen</b> <<a href="mailto:thirsteh@gmail.com">thirsteh@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Oh, and, apologies for the "inpythonic" nature of this issue.</div><div><span class="e" id="q_10b6370a2ceb01cd_1"><br><br><div><span class="gmail_quote">On 5/24/06, <b class="gmail_sendername">Patrick M. Nielsen
</b> <<a href="mailto:thirsteh@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">thirsteh@gmail.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Hey guys.<br><br>I have begun playing with the Simple MUD server example from the Stackless website
<br>( <a href="http://www.stackless.com/Members/rmtew/code/mud.py" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.stackless.com/Members/rmtew/code/mud.py</a> )
<br>and it's all good so far, however, I've come to notice something that I remember from back<br>in the days (some old mud code), but I don't remember what I did to fix it.<br><br>While the MUD reads lines from Telnet clients just fine, clients such as Gmud are practically ignored,
<br>probably because Gmud doesn't send Telnet-valid data ('\x08'?).<br><br>However, a MUD that is not accessible to one such client or others isn't much good, so I'd appreciate<br>some help in pinpointing the problem.<br>


<br>These are the code blocks that need modification (I believe)<br><br>    def read(self): # TELNET<br>        ret = self.readChannel.receive()<br>        if self.echo:<br>            if ret == '\x08':<br>                
self.send(ret+" ")<br>            self.send(ret)<br>        return ret<br><br>    def readline(self): # TELNET<br>        buf = self.readBuffer<br><br>        while True:<br>            if buf.find('\r\n') > -1: # MUD clients that aren't using the telnet protocol
<br>                i = buf.index('\r\n') # need to be able to do stuff.<br>                ret = buf[:i+2]<br>                self.readBuffer = buf[i+2:]<br>                while '\x08' in ret:<br>                    i = 
ret.index('\x08')<br>                    if i == 0:<br>                        ret = ret[1:]<br>                    else:<br>                        ret = ret[:i-1]+ret[i+1:]<br>                return ret<br><br>            buf += 
self.read()<br><br>I'm suspecting that Gmud doesn't send '\x08', since from looking at some old DIKU code,<br>I see that the if '\n' || '\r' are there as well, but there is no check for '\x08'. If this is indeed<br>the cause of my problem, how would I go about doing it?
<br><br>Thanks in advance.<br>

</div></blockquote></div><br>

</span></div></blockquote></div><br>