
    MhI                        d dl mZ d dlZej        dk    sJ d dlmZmZ d dlmZ ddl	m
Z
 ddlmZ dd	lmZ dd
lmZ dgZ G d d          Z e
j        e           dS )    )annotationsNwin32)AnyTextIOSize   )Output)
ColorDepth)Vt100_Output)Win32OutputConEmuOutputc                  >    e Zd ZdZ	 ddd	Zedd            ZddZdS )r   a  
    ConEmu (Windows) output abstraction.

    ConEmu is a Windows console application, but it also supports ANSI escape
    sequences. This output class is actually a proxy to both `Win32Output` and
    `Vt100_Output`. It uses `Win32Output` for console sizing and scrolling, but
    all cursor movements and scrolling happens through the `Vt100_Output`.

    This way, we can have 256 colors in ConEmu and Cmder. Rendering will be
    even a little faster as well.

    http://conemu.github.io/
    http://gooseberrycreative.com/cmder/
    Nstdoutr   default_color_depthColorDepth | NonereturnNonec                b    t          ||          | _        t          |d |          | _        d S )N)r   c                 "    t          dd          S )Nr   r        \/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/prompt_toolkit/output/conemu.py<lambda>z'ConEmuOutput.__init__.<locals>.<lambda>*   s    DAJJ r   )r   win32_outputr   vt100_output)selfr   r   s      r   __init__zConEmuOutput.__init__%   sC     (DWXXX(&&<O
 
 
r   boolc                    dS )NFr   )r   s    r   responds_to_cprzConEmuOutput.responds_to_cpr-   s    ur   namestrr   c                ^    |dv rt          | j        |          S t          | j        |          S )N)get_sizeget_rows_below_cursor_positionenable_mouse_supportdisable_mouse_supportscroll_buffer_to_promptget_win32_screen_buffer_infoenable_bracketed_pastedisable_bracketed_paste)getattrr   r   )r   r"   s     r   __getattr__zConEmuOutput.__getattr__1   s<     	
 	
 	
 4,d3334,d333r   )N)r   r   r   r   r   r   )r   r   )r"   r#   r   r   )__name__
__module____qualname____doc__r   propertyr!   r.   r   r   r   r   r      sr           HL
 
 
 
 
    X4 4 4 4 4 4r   )
__future__r   sysplatformtypingr   r   prompt_toolkit.data_structuresr   baser
   color_depthr   vt100r   r   r   __all__r   registerr   r   r   <module>r>      s    " " " " " " 




|w         / / / / / /       # # # # # #             
)4 )4 )4 )4 )4 )4 )4 )4X      r   