-ķ
ģ¶<c       s%   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    sī   t  } y_ t i   } t i   t i   | i d  y t i   Wn n Xt	 |  | f |  } WnS | i d  t i   t i   t i   t i   \ } } } | | |  n0 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   