Sounds like the terminal settings aren't being restored properly (echo
being left on, for instance).   Would you post a simple test script that
demonstrates the problem you are having?

Ian

Christian Scharkus wrote:
> Well ... the suspend is working now but there are still some small
> problems. As said before I start urwid with the wrapper-method. If I
> suspend the interface and restore it after the subprocess (I use links
> for testing) is finished there are problems with the input. Letters
> are displayed twice in the input widget but submitted as the right
> string to the application. After a second suspend this problem
> vanishes. But then I quit the app after this the terminal isn't
> returned to correct input behavior and it seems that curses didn't
> exit right. If I start again without resetting the terminal there's no
> problem with the input and suspending.
> For information: I'm using twisted as mainloop with a dummy
> filedescriptor so a try to redraw the screen is called everytime
> there's some input.
> 
> Thanks for your help
> Christian
> 
> 2009/1/20 Ian Ward <[email protected]>:
>> Thanks Christian, it looks like a bug.  Try the attached patch.
>>
>> Ian
>>
>> Christian Scharkus wrote:
>>> Hi Ian.
>>>
>>> I tried to call stop() and 20 seconds afterwards start() but stop()
>>> seems to have no effect at all and start() drops an AssertionError.
>>> I use urwid-0.9.8.3hg149 with twisted as mainloop called with
>>> run_wrapper(). I hope you can help me.
>>>
>>> Christian Scharkus
>>>
>>> 2009/1/18 Ian Ward <[email protected]>:
>>>> Christian Scharkus wrote:
>>>>> Hi folks.
>>>>> It's time for some more questions I think :D
>>>>>
>>>>> I would like to know if there is any possibility to suspend the
>>>>> curses_display of urwid to start something like links from my app to
>>>>> show websites etc.
>>>> Yes, you can use curses_display.Screen.stop() and start()
>>>>
>>>>> Second it would be nice to have keycombos given from get_input() like
>>>>> "shift enter", "ctrl enter" because I would like to be able to make some
>>>>> newlines in the chat-client I currently write.
>>>> I don't think a regular terminal app can detect shift-enter and
>>>> ctrl-enter.  When I run "input_test.py" I see only a single "10" value
>>>> from the terminal when I press enter regardless of shift and ctrl state.
>>>>
>>>> It would be possible to detect the shift and ctrl state with some
>>>> trickery like connecting to the X server where the app is running, but
>>>> Urwid doesn't try doing that at the moment.
>>>>
>>>> Ian
>>>>
>>>>
>>>> _______________________________________________
>>>> Urwid mailing list
>>>> [email protected]
>>>> http://lists.excess.org/mailman/listinfo/urwid
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Urwid mailing list
>>> [email protected]
>>> http://lists.excess.org/mailman/listinfo/urwid
>>>
>>
>> _______________________________________________
>> Urwid mailing list
>> [email protected]
>> http://lists.excess.org/mailman/listinfo/urwid
>>
>>
> 
> 
> _______________________________________________
> Urwid mailing list
> [email protected]
> http://lists.excess.org/mailman/listinfo/urwid
> 



_______________________________________________
Urwid mailing list
[email protected]
http://lists.excess.org/mailman/listinfo/urwid

Reply via email to