
Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­
<!DOCTYPE html>
<html>
U
    ¡ê,aØ  ã                   @   sh   d Z ddlT ddlZddlZdd„ Zdd„ Zze W n  e	k
rT   dd	lmZ Y nX d
d„ Z
de
_dS )zØ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()
   ...

é    )Ú*Nc                  C   sp   dd l } dd l}ttj dd¡tj ¡ d� |  	¡ }| j
 ¡ D ],\}}|dd… dks^|dkr>t|||ƒ q>|S )Nr   ZTERMÚunknown)ZtermÚfdé   ZACS_)ZLINESZCOLS)Ú_cursesÚcursesZ	setuptermÚ_osÚenvironÚgetÚ_sysÚ
__stdout__ÚfilenoÚinitscrÚ__dict__ÚitemsÚsetattr)r   r   ÚstdscrÚkeyÚvalue© r   ú4/opt/alt/python38/lib64/python3.8/curses/__init__.pyr      s    ÿr   c                  C   s@   dd l } dd l}|  ¡ }t| dƒr*| j|_t| dƒr<| j|_|S )Nr   ÚCOLORSÚCOLOR_PAIRS)r   r   Ústart_colorÚhasattrr   r   )r   r   Zretvalr   r   r   r   *   s    

r   é   )Úhas_keyc               	   O   sÀ   | r| ^}} n<d|kr:|  d¡}ddl}|jdtdd� ntdt| ƒ ƒ‚zHtƒ }tƒ  tƒ  | d	¡ z
tƒ  W n   Y nX ||f| ž|ŽW ¢S dtƒ krº| d¡ tƒ  t	ƒ  t
ƒ  X dS )
a  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().
    Úfuncr   Nz0Passing 'func' as keyword argument is deprecatedé   )Ú
stacklevelz7wrapper expected at least 1 positional argument, got %dr   r   )ÚpopÚwarningsÚwarnÚDeprecationWarningÚ	TypeErrorÚlenÚlocalsZkeypadZechoZnocbreakZendwinr   ZnoechoZcbreakr   )ÚargsÚkwdsr   r!   r   r   r   r   Úwrapper?   s6    

 ÿÿ



r)   z(func, /, *args, **kwds))Ú__doc__r   Úosr   Úsysr   r   r   r   Ú	NameErrorr)   Ú__text_signature__r   r   r   r   Ú<module>   s   
2