Re: curses event handling

2006-06-07 Thread Walter Dörwald
John Hunter wrote: > I have a curses app that is displaying real time data. I would like > to bind certain keys to certain functions, but do not want to block > waiting for > > c = screen.getch() > > Is it possible to register callbacks with curses, something like > > screen.register('ke

curses event handling

2006-06-07 Thread John Hunter
I have a curses app that is displaying real time data. I would like to bind certain keys to certain functions, but do not want to block waiting for c = screen.getch() Is it possible to register callbacks with curses, something like screen.register('keypress', myfunc) Thanks, JDH -- ht