[slimpl] ecl + async
Jim Bailey
dgym.bailey at gmail.com
Mon Mar 6 11:18:42 CST 2006
I have finally published my ecl + async patches, using an arrangement that should make it easy for me to submit seperate patches to the vim-dev list (one for the async work and one for ecl). Hopefully no one minds using darcs?
Thanks for the configure patch Larry, I will integrate it as soon as my "real work" stops getting in the way. The gtk code should work on gtk1 and gtk2, but I have only tested it with gtk2.
There is a problem with using msg() from code not called as a result of an ex command, so I have some really nasty stuff in there to open up a new buffer and redirect all output to that when running on-data callbacks. I promise to tidy it up soon.
But for those that don't mind a new window appearing on their screen the first time some data comes in over a socket (it is a little intrusive) this is my test code, to be run against a server that can print and send strings, such as netcat:
(setf conn (si:open-client-stream "localhost" 1234))
(format conn "from vim~%")
(force-output conn)
(defun on-read ()
(loop while (listen conn)
do
(write-line (read-line conn))))
;;(vim:remove-input-listener conn)
(vim:add-input-listener conn #'on-read)
More information about the slimpl
mailing list