-í
ì¶<c       s1     d  Z   
 d k Z 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.

Nc    s9     t  }  yz  t i ƒ  }  t i ƒ   t i ƒ  ! | i d ƒ ' y ( t i ƒ  Wn ) * n X, t	 |  | f | ƒ } Wnh - 0 | i d ƒ 1 t i ƒ  2 t i ƒ  3 t i ƒ  6 t i ƒ  \ } } } 7 | | | ‚ n? X: | i d ƒ ; t i ƒ  < t i ƒ  = t i ƒ  ? | Sd 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   i    N(   s   Nones   ress   cursess   initscrs   stdscrs   noechos   cbreaks   keypads   start_colors   applys   funcs   rests   echos   nocbreaks   endwins   syss   exc_infos   exc_types	   exc_values   exc_traceback(   s   funcs   rests   exc_tracebacks   ress	   exc_values   stdscrs   exc_type(    (    s$   /usr/lib/python2.2/curses/wrapper.pys   wrapper s0   	(   s   __doc__s   syss   cursess   wrapper(   s   syss   wrappers   curses(    (    s$   /usr/lib/python2.2/curses/wrapper.pys   ? s   