Hacked By AnonymousFox

Current Path : /opt/alt/python312/lib64/python3.12/curses/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/curses/__pycache__/__init__.cpython-312.pyc

�

�Q�f)
��b�dZddl�ddlZddlZd�Zd�Z	ed�Z
y#e	$rddlmZYd�Z
ywxYw)	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�<�ddl}ddl}ttjjdd�tjj���|j�}|jj�D]\}}|dddk(s|dvs�t|||��!|S)Nr�TERM�unknown)�term�fd��ACS_)�LINES�COLS)
�_curses�curses�	setupterm�_os�environ�get�_sys�
__stdout__�fileno�initscr�__dict__�items�setattr)r
r�stdscr�key�values     �6/opt/alt/python312/lib64/python3.12/curses/__init__.pyrrs�����3�;�;�?�?�6�9�5����'�'�)�+�
�_�_�
�F��&�&�,�,�.�
��U��q��8�v���(9�!9��F�C��'�/��M�c��ddl}ddl}|j�}t|d�r|j|_t|d�r|j
|_|S)Nr�COLORS�COLOR_PAIRS)r
r�start_color�hasattrr r!)r
r�retvals   rr"r"*sE���
�
 �
 �
"�F��w��!�����
��w�
�&�$�0�0����Mr�)�has_keyc��	t�}t�t�|jd�	t	�||g|��i|��dt�vr0|jd�t
�t�t�SS#Y�LxYw#dt�vr0jd�t
�t�t�wwxYw)aWrapper 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().
    r%rr)	r�noecho�cbreak�keypadr"�locals�echo�nocbreak�endwin)�func�args�kwdsrs    r�wrapperr2?s�������	����
	�
�
�a��	��M��F�*�T�*�T�*��v�x���M�M�!���F��J��H�	 ��
	���
�v�x���M�M�!���F��J��H�	 �s!�/B�
B�B�B�B�>C	)�__doc__r
�osr�sysrrr"r&�	NameErrorr2�rr�<module>r8sE��
�����"�!��&���!� �&�!�s��.�.

Hacked By AnonymousFox1.0, Coded By AnonymousFox