[Urwid] ctrl keys

Le Roux Bodenstein lerouxb at gmail.com
Tue Aug 14 15:26:13 EDT 2007


Hello

I'm new to urwid. I started writing a little bit of test code to try
out some things I want to use in my app and I noticed that some
control keys don't work.

Now.. I know these things have special meanings in terminal apps, but
I'm sure there must be a way to override them. Most importantly, I
would like to make ctrl-q, ctrl-s and ctrl-c do things. I've used some
other python+curses apps that handle some of these like ctrl-s for
save and ctrl-q to quit, so there has to be a way. Looks like ctrl-q
is supposed to send through the code '17'.

Any ideas? I can't find any obvious setting that needs to be changed
and I looked through some other apps' code and I can't find something
they do that urwid doesn't do.

I tried both raw_display and curses_display (after I had to comment
some things to make it run) from svn.

Le Roux

Btw, I'm running my tests in gnome-terminal under ubuntu feisty.




More information about the Urwid mailing list