U
    d                     @  sL   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	dZ
d
S )    )annotations)KeyPressEvent)Keys   )KeyBindingsload_cpr_bindingsr   )returnc                  C  s.   t  } | jtjdd dddddd}| S )	Nc                 S  s   dS )NF )er	   r	   K/tmp/pip-unpacked-wheel-4x_7prb2/prompt_toolkit/key_binding/bindings/cpr.py<lambda>       z#load_cpr_bindings.<locals>.<lambda>)Zsave_beforeENone)eventr   c                 S  s0   t t| jdd d\}}| jj| dS )zC
        Handle incoming Cursor-Position-Request response.
        r   ;N)mapintdatasplitZappZrendererZreport_absolute_cursor_row)r   rowcolr	   r	   r   _   s    zload_cpr_bindings.<locals>._)r   addr   ZCPRResponse)key_bindingsr   r	   r	   r   r      s    N)
__future__r   Z(prompt_toolkit.key_binding.key_processorr   Zprompt_toolkit.keysr   r   r   __all__r   r   r	   r	   r	   r   <module>   s   