Your IP : 3.148.112.216


Current Path : /proc/self/root/opt/alt/python37/lib64/python3.7/curses/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python37/lib64/python3.7/curses/__pycache__/__init__.cpython-37.opt-2.pyc

B

YI~d�@s^ddlTddlZddlZdd�Zdd�ZyeWn ek
rPddlmZYnXd	d
�Z	dS)�)�*NcCstddl}ddl}ttj�dd�tj��d�|�	�}x:|j
��D],\}}|dd�dks`|dkr@t|||�q@W|S)NrZTERM�unknown)Zterm�fd�ZACS_)ZLINESZCOLS)
�_curses�cursesZ	setupterm�_os�environ�get�_sys�
__stdout__�fileno�initscr�__dict__�items�setattr)rr�stdscr�key�value�r�4/opt/alt/python37/lib64/python3.7/curses/__init__.pyrsrcCs@ddl}ddl}|��}t|d�r*|j|_t|d�r<|j|_|S)Nr�COLORS�COLOR_PAIRS)rr�start_color�hasattrrr)rrZretvalrrrr*s

r�)�has_keyc	Os�|r|^}}n$d|kr"|�d�}ntdt|���zDt�}t�t�|�d�y
t�WnYnX||f|�|�Sdt�kr�|�d�t	�t
�t�XdS)N�funcz7wrapper expected at least 1 positional argument, got %drrr)�pop�	TypeError�lenrZnoechoZcbreakZkeypadr�localsZechoZnocbreakZendwin)�args�kwdsrrrrr�wrapper?s*




r$)
r�osr�sysrrrr�	NameErrorr$rrrr�<module>
s


?>