[Urwid] curses menu using urwid

Ian Ward ian at excess.org
Thu Apr 23 00:38:33 EDT 2009


Sujan Shakya wrote:
> Hi Ian,
> Thank you for helping me. I've completed the curses task of creating
> menu based console using urwid. But right I am facing a problem. I
> need to ignore keyboard interrupts such as Ctrl-C, Ctrl-Z etc. There
> must a way to do this. So please help me.

You can mask the INTR and STOP signals with:
screen.tty_signal_keys(intr='undefined', stop='undefined')

(or remap them to other keys)

It seems my reference documentation isn't showing the methods inherited 
from subclasses anymore.  I'll have to look into fixing that.  The 
method is defined in the RealTerminal class.

Ian






More information about the Urwid mailing list