ó
!Xc           @   s   d  Z  d Z d d l Td d l m Z d d l Z d d l Z d   Z	 d   Z
 y e Wn! e k
 r{ d d l m Z n Xd S(	   sŲ   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.initwin()
   ...

s   $Id$i’’’’(   t   *(   t   wrapperNc          C   s„   d d  l  }  d d  l } t d t j j d d  d t j j    |  j	   } xO |  j
 j   D]> \ } } | d d !d k s | d k r_ t | | |  q_ q_ W| S(   Ni’’’’t   termt   TERMt   unknownt   fdi    i   t   ACS_t   LINESt   COLS(   R   R   (   t   _cursest   cursest	   setuptermt   _ost   environt   gett   _syst
   __stdout__t   filenot   initscrt   __dict__t   itemst   setattr(   R	   R
   t   stdscrt   keyt   value(    (    s%   /usr/lib/python2.7/curses/__init__.pyR      s    c          C   sd   d d  l  }  d d  l } |  j   } t |  d  rB |  j | _ n  t |  d  r` |  j | _ n  | S(   Ni’’’’t   COLORSt   COLOR_PAIRS(   R	   R
   t   start_colort   hasattrR   R   (   R	   R
   t   retval(    (    s%   /usr/lib/python2.7/curses/__init__.pyR   -   s    (   t   has_key(   t   __doc__t   __revision__R	   t   curses.wrapperR   t   osR   t   sysR   R   R   R   t	   NameError(    (    (    s%   /usr/lib/python2.7/curses/__init__.pyt   <module>   s   

		