[Urwid] urwid and twisted reactor

Ian Ward ian at excess.org
Wed Jun 28 09:41:06 EDT 2006


markus espenhain wrote:
> thank you for the answers to my last question -  that really helped me 
> and i think i really began to see :)
> 
> and here's the next one right away - is there a possibility to use urwid 
> with a reactor from the twisted framework? or rather - is there a 
> possibility to replace the usual run loop with something similar to this 
> one here

The only conflict between Urwid and twisted right now is that the 
get_input() function relies on being able to read input itself and delay 
for more input when it receives a partial escape sequence from the user.

That function needs to be refactored so that it can be called with input 
to process and indicate to the caller when it thinks more input is 
pending. In the twisted case that might translate into a callLater() or 
something to handle the "didn't get more input in time" case.

If this is something you'd be able to do, please send patches on this list.

Ian




More information about the Urwid mailing list