Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.10/curses/__pycache__/ |
Upload File : |
o }�5h) � @ 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 �TERM�unknown)�term�fd� �ACS_)�LINES�COLS) �_curses�curses� setupterm�_os�environ�get�_sys� __stdout__�fileno�initscr�__dict__�items�setattr)r r �stdscr�key�value� r �&/usr/lib/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 �retvalr 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"