AlkantarClanX12

Your IP : 18.218.108.24


Current Path : /proc/self/root/opt/alt/python311/lib64/python3.11/curses/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python311/lib64/python3.11/curses/__pycache__/__init__.cpython-311.pyc

�

c��f)
��^�dZddlTddlZddlZd�Zd�Z	en#e	$r	ddlmZYnwxYwd�Z
dS)	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�X�ddl}ddl}ttj�dd��tj������|�	��}|j
���D](\}}|dd�dks|dvrt|||���)|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/python311/lib64/python3.11/curses/__init__.pyrrs������������3�;�?�?�6�9�5�5���'�'�)�)�+�+�+�+�
�_�_�
�
�F��&�,�,�.�.�(�(�
��U��q��s�8�v����(9�!9�!9��F�C��'�'�'���M�c��ddl}ddl}|���}t|d��r|j|_t|d��r|j|_|S)Nr�COLORS�COLOR_PAIRS)r
r�start_color�hasattrr r!)r
r�retvals   rr"r"*sh����������
�
 �
 �
"�
"�F��w��!�!�'����
��w�
�&�&�1�$�0����Mr�)�has_keyc��	t��}t��t��|�d��	t	��n#YnxYw||g|�Ri|��dt��vr@|�d��t
��t��t��SS#dt��vr@|�d��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�M�M�M��	��D�����t�F�*�T�*�*�*�T�*�*��v�x�x����M�M�!�����F�F�F��J�J�J��H�H�H�H�	 ��8�v�x�x����M�M�!�����F�F�F��J�J�J��H�H�H�H�	 ���s$�?B4�A�B4�A�B4�4AD)�__doc__r
�osr�sysrrr"r&�	NameErrorr2�rr�<module>r8s���
�
����������������"���!��G�G���!�!�!� � � � � � � � �!����&�&�&�&�&s��'�'