Current File : //usr/local/apps/python3/lib/python3.11/test/__pycache__/curses_tests.cpython-311.opt-2.pyc
�

�Ke���X�ddlZddlmZdd�Zd�Zedkreje��dSdS)�N)�textpadFc�
�d\}}d\}}|rd}nd}|�|dz
|d|z��|�|dz
|d��tj||||��}tj||d	z
|d	z
||z||z��|���tj||��}|���}	|�||zdzd
d��|�t|	����|�d��|�d
��|�	��td��D]5}
|�||zdz|
zd
��|����6dS)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           �;/usr/local/apps/python3/lib/python3.11/test/curses_tests.py�test_textpadr"
s����M�E�6��H�C��� ������
�M�M�#�a�%��?�$�F�G�G�G�
�M�M�#�a�%��P�Q�Q�Q�
�-���s�C�
0�
0�C���f�c�!�e�S��U�C�&�L�#��+�F�F�F�
�N�N����
�/�#�{�
+�
+�C��x�x�z�z�H�
�M�M�#�e�)�A�+�q�"=�>�>�>�
�M�M�$�x�.�.�!�!�!�
�M�M�$����
�M�M�/�"�"�"�
�L�L�N�N�N�
�1�X�X�������C��I�a�K�!�O�Q�'�'�'����������c�n�|���t|d��t|d��dS)NFT)�clearr")rs r!�mainr&'s5��
�L�L�N�N�N��������������r#�__main__)F)rrr"r&�__name__�wrapper�r#r!�<module>r+sr���
�
�
�����������4����z����F�N�4�������r#