curses event handling

John Hunter jdhunter at ace.bsd.uchicago.edu
Wed Jun 7 08:38:31 EDT 2006


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



More information about the Python-list mailing list