SublimePTY icon indicating copy to clipboard operation
SublimePTY copied to clipboard

Investigate asynchrous updates instead of RPC

Open wuub opened this issue 13 years ago • 5 comments

Right now supervisor pokes each process every 0.2 seconds and also after sending any input event. It would great if console_server.py just let console_client.py know when something changed on screen.

wuub avatar May 15 '12 11:05 wuub

I seem to remember you mentioned something about ZMQ. Any luck with that?

guillermooo avatar May 16 '12 09:05 guillermooo

I wanted to use zmq as a reliable and low latency channel for keypresses and screen upades. After some tinkering I was able to load zmq extension into sublime and create both Context and Socket, but once anything connected to this socket sublime crashed hard.

wuub avatar May 16 '12 09:05 wuub

I've been looking around and I can't find any "official" releases for Python 2.6. Were you using a driver for a different Python version perhaps?

guillermooo avatar May 17 '12 21:05 guillermooo

IIRC I tried both win32 and amd64 2.6 binaries from here https://github.com/zeromq/pyzmq/downloads (obviously with 32 and 64bit st2). I suspect that boost python might not be playing so well with C extensions compiled for standard cpython and/or st2 didn't like zmq's background IO thread.

wuub avatar May 17 '12 22:05 wuub

Shame. ZMQ looked like a good option and would make SublimePTY awesomer.

guillermooo avatar May 17 '12 22:05 guillermooo