o
    �õ±j  ã                   @  sH   d dl mZ d dlmZ d dlmZ ddlmZ dgZeZ	dd	d„Z
d
S )é    )Úannotations)ÚKeyPressEvent)ÚKeysé   )ÚKeyBindingsÚload_cpr_bindingsÚreturnr   c                  C  s(   t ƒ } | jtjdd„ d�d
dd	„ƒ}| S )Nc                 S  s   dS )NF© )Úer	   r	   úš/root/aizidognhua/tmp/workspace/projects/ec89d86c-575f-41c9-af57-ac45cbdbf775/venv/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/cpr.pyÚ<lambda>   s    z#load_cpr_bindings.<locals>.<lambda>)Úsave_beforeÚeventÚEr   ÚNonec                 S  s0   t t| jdd…  d¡ƒ\}}| jj |¡ dS )zC
        Handle incoming Cursor-Position-Request response.
        r   éÿÿÿÿú;N)ÚmapÚintÚdataÚsplitÚappÚrendererÚreport_absolute_cursor_row)r   ÚrowÚcolr	   r	   r   Ú_   s   zload_cpr_bindings.<locals>._)r   r   r   r   )r   Úaddr   ÚCPRResponse)Úkey_bindingsr   r	   r	   r   r      s   N)r   r   )Ú
__future__r   Ú(prompt_toolkit.key_binding.key_processorr   Úprompt_toolkit.keysr   r   r   Ú__all__r   r   r	   r	   r	   r   Ú<module>   s    ÿ