[Twisted-Python] Twisted and curses

Andrew Bennetts andrew-twisted at puzzling.org
Mon Aug 18 21:42:07 EDT 2003


On Mon, Aug 18, 2003 at 01:21:42AM +1000, screwtape at froup.com wrote:
[...]
> Twisted does not come with a curses reactor, but with a little
> experimentation I found out how to make the reactor's .listenWith()
> method do more or less what I wanted.

Have you seen doc/examples/cursesclient.py ?

> Code is here (5KB tarball):
> 
> 	http://members.optusnet.com.au/thristian/curses.tar.gz
> 
> You get cursesapp.py, a thin wrapper around curses setup, teardown,
> and the eventloop, and test.py, a very simple demonstration program.
> There's lots of comments and docstrings.
> 
> What do you think?

I'm no curses expert, but I'd be interested to see if your cursesapp can
simplify doc/examples/cursesclient.py... ;)

I think proper curses support in Twisted is a good idea though...

-Andrew.





More information about the Twisted-Python mailing list