[Twisted-Python] Curses
![](https://secure.gravatar.com/avatar/3477a9de290ec6d77129af504faa1c0b.jpg?s=120&d=mm&r=g)
As the last living dinosaur, I've written a curses module: it's at http://moshez.org/tcurses.py Here is an example usage program:
log.startLogging(open("twistd.log", "ab+")) screen = tcurses.Screen() protocol = tcurses.WindowProtocol() window = tcurses.LineInput(15, 0, 79) protocol.addWindow(window) screen.setProtocol(protocol) app = main.Application("curses-demo") app.addPort(screen) app.run()
------------------------------------------------<
I know it's not exactly a "port", but it's sure close enough in the Twisted scheme of things (IOW, it's got startListening ;-) (and yes, I know LineInput could use a *lot* of work. But it's pretty cool regardless) -- The Official Moshe Zadka FAQ: http://moshez.geek The Official Moshe Zadka FAQ For Dummies: http://moshez.org Read the FAQ
participants (1)
-
Moshe Zadka