HEX
Server: Apache
System: Linux bd12.noc223.com 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: handcraf (1693)
PHP: 8.1.28
Disabled: NONE
Upload Files
File: //opt/alt/python312/lib64/python3.12/test/__pycache__/curses_tests.cpython-312.opt-2.pyc
�

}h�e���V�ddlZddlmZdd�Zd�Zedk(rej
e�yy)�N)�textpadc��d\}}d\}}|rd}nd}|j|dz
|d|z�|j|dz
|d�tj||||�}tj||d	z
|d	z
||z||z�|j�tj||�}|j�}	|j||zdzd
d�|jt|	��|jd�|jd
�|j�td�D]-}
|j||zdz|
zd
�|j��/y)N)��)r�zinsert modezoverwrite moderzUse Ctrl-G to end editing (%s).rz0Be sure to try typing in the lower-right corner.�rzText entered in the box
�
z
Press any key)
�addstr�curses�newwinr�	rectangle�refresh�Textbox�edit�repr�getch�range�move�clrtoeol)�stdscr�insert_mode�ncols�nlines�uly�ulx�mode�win�box�contents�is           �8/opt/alt/python312/lib64/python3.12/test/curses_tests.py�test_textpadr"
s0���M�E�6��H�C�������
�M�M�#�a�%��?�$�F�G�
�M�M�#�a�%��P�Q�
�-�-���s�C�
0�C����f�c�!�e�S��U�C�&�L�#��+�F�
�N�N��
�/�/�#�{�
+�C��x�x�z�H�
�M�M�#�e�)�A�+�q�"=�>�
�M�M�$�x�.�!�
�M�M�$��
�M�M�/�"�
�L�L�N�
�1�X������C��I�a�K�!�O�Q�'������c�T�|j�t|d�t|d�y)NFT)�clearr")rs r!�mainr&'s��
�L�L�N��������r#�__main__)F)rrr"r&�__name__�wrapper�r#r!�<module>r+s4�����4��z���F�N�N�4��r#