Commit 89d702f0 authored by Sébastien Luttringer's avatar Sébastien Luttringer
Browse files

Handle ^] to quit from rshell and console commands

parent 4be7e906
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -40,7 +40,11 @@ class FakeTtySocket(object):
        tty.setraw(0)

    def recv(self, size):
        return os.read(0, 1024)
        data =  os.read(0, size)
        if "\x1d" in data:
            # we need to raise a IOError to make sjrpc end the connection
            raise IOError()
        return data

    def send(self, data):
        return os.write(0, data)