Ĵ˙f&
c @ s} d Z d d l Td d l Z d d l Z d d Z d d Z y e Wn" e k
rl d d l m Z Yn Xd
d Z
d S( uĜ curses
The main package for curses support for Python. Normally used by importing
the package, and perhaps a particular module inside it.
import curses
from curses import textpad
curses.initscr()
...
i ( u *Nc C s¨ d d l } d d l } t d t j j d d d t j j | j } xR | j
j D]A \ } } | d d
d k s | d
k r_ t | | | q_ q_ W| S( Ni u termu TERMu unknownu fdi u ACS_u LINESu COLS( u LINESu COLS(
u _cursesu cursesu setuptermu _osu environu getu _sysu
__stdout__u filenou initscru __dict__u itemsu setattr( u _cursesu cursesu stdscru keyu value( ( u4 /opt/alt/python33/lib64/python3.3/curses/__init__.pyu initscr s "u initscrc C sd d d l } d d l } | j } t | d rB | j | _ n t | d r` | j | _ n | S( Ni u COLORSu COLOR_PAIRS( u _cursesu cursesu start_coloru hasattru COLORSu COLOR_PAIRS( u _cursesu cursesu retval( ( u4 /opt/alt/python33/lib64/python3.3/curses/__init__.pyu start_color* s u start_colori ( u has_keyc O s zN t } t t | j d y t Wn Yn X| | | | SWd d t k r
| j d t t t n Xd S( u 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 Nu stdscri ( u initscru noechou cbreaku keypadu start_coloru localsu echou nocbreaku endwin( u funcu argsu kwdsu stdscr( ( u4 /opt/alt/python33/lib64/python3.3/curses/__init__.pyu wrapper? s
u wrapper( u __doc__u _cursesu osu _osu sysu _sysu initscru start_coloru has_keyu NameErroru wrapper( ( ( u4 /opt/alt/python33/lib64/python3.3/curses/__init__.pyu