
    ^hI                        S SK Jr  S SKr\R                  S:X  d   eS SKJrJr  S SKJr  SSK	J
r
  SSKJr  SS	KJr  SS
KJr  S/r " S S5      r\
R&                  " \5        g)    )annotationsNwin32)AnyTextIOSize   )Output)
ColorDepth)Vt100_Output)Win32OutputConEmuOutputc                  P    \ rS rSrSr S     S	S jjr\S
S j5       rSS jrSr	g)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/
Nc                B    [        XS9U l        [        US US9U l        g )N)default_color_depthc                     [        SS5      $ )Nr   r        V/home/james-whalen/.local/lib/python3.13/site-packages/prompt_toolkit/output/conemu.py<lambda>'ConEmuOutput.__init__.<locals>.<lambda>*   s
    DAJr   )r   win32_outputr   vt100_output)selfstdoutr   s      r   __init__ConEmuOutput.__init__%   s'     (X(&<O
r   c                    g)NFr   )r   s    r   responds_to_cprConEmuOutput.responds_to_cpr-   s    r   c                f    US;   a  [        U R                  U5      $ [        U R                  U5      $ )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   names     r   __getattr__ConEmuOutput.__getattr__1   s7     	
 	
 4,,d334,,d33r   )r   r   )N)r   r   r   zColorDepth | NonereturnNone)r/   bool)r,   strr/   r   )
__name__
__module____qualname____firstlineno____doc__r   propertyr    r-   __static_attributes__r   r   r   r   r      sD      HL

3D
	
  4r   )
__future__r   sysplatformtypingr   r   prompt_toolkit.data_structuresr   baser
   color_depthr   vt100r   r   r   __all__r   registerr   r   r   <module>rD      sT    " 

||w   /  #   
)4 )4X  r   