Ńň §ÚęLc @ s d Z d d k Z d Z d S( s curses.wrapper Contains one function, wrapper(), which runs another function which should be the rest of your curses-based application. If the application raises an exception, wrapper() will restore the terminal to a sane state so you can read the resulting traceback. i˙˙˙˙Nc O s zY t i } t i t i | i d y t i Wn n X| | | | SWd | i d t i t i t i Xd S( s Wrapper function that initializes curses and calls another function, restoring normal keyboard/screen behavior on error. The callable object 'func' is then passed the main window 'stdscr' as its first argument, followed by any other arguments passed to wrapper(). i Ni ( t cursest initscrt noechot cbreakt keypadt start_colort echot nocbreakt endwin( t funct argst kwdst stdscr( ( s&