--- a/LPCBeremiz.py Fri Jun 04 11:27:00 2010 +0200
+++ b/LPCBeremiz.py Fri Jun 04 13:09:35 2010 +0200
@@ -870,8 +870,7 @@
self.PluginRoot.KillDebugThread()
+ lpcberemiz_cmd.Log.write("Closed\n") @@ -1065,12 +1064,21 @@
def __init__(self, port):
self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.socket.connect(('localhost', port))
- return self.socket.recv(2048)
+ idx = self.Buffer.find("\n") + self.Buffer += self.socket.recv(2048) + idx = self.Buffer.find("\n") + line = self.Buffer[:idx+1] + self.Buffer = self.Buffer[idx+1:] """ Base class for file like objects to facilitate StdOut for the Shell."""
def write(self, s, style = None):