
    d@                    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 dl	m
Z
 erd dlmZ  G d d	e          Zd
S )    )annotations)TYPE_CHECKING)cast)StringInput)IO)BufferedOutput)Inputc                  h     e Zd Z	 	 	 dd fdZddZddZddZddZddZddZ	ddZ
ddZ xZS )
BufferedIONFTinputInput | None	decoratedboolsupports_utf8returnNonec                    t                                          |pt          d          t          ||          t          ||                     d S )N )r   r   )super__init__r   r   )selfr   r   r   	__class__s       W/home/feoh/.local/pipx/venvs/poetry/lib/python3.11/site-packages/cleo/io/buffered_io.pyr   zBufferedIO.__init__   sY     	$[__YmLLLYmLLL	
 	
 	
 	
 	
    strc                Z    t          t          | j                                                  S N)r   r   _outputfetchr   s    r   fetch_outputzBufferedIO.fetch_output   s     NDL1177999r   c                Z    t          t          | j                                                  S r   )r   r   _error_outputr   r    s    r   fetch_errorzBufferedIO.fetch_error   s!    ND$677==???r   c                    t          t          | j                                                   t          t          | j                                                   d S r   )r   r   r   clearr#   r    s    r   r&   zBufferedIO.clear"   sE    ^T\**00222^T/006688888r   c                ^    t          t          | j                                                   d S r   )r   r   r   r&   r    s    r   clear_outputzBufferedIO.clear_output&   s&    ^T\**0022222r   c                ^    t          t          | j                                                   d S r   )r   r   r#   r&   r    s    r   clear_errorzBufferedIO.clear_error)   s'    ^T/006688888r   c                Z    t          t          | j                                                  S r   )r   r   r   r   r    s    r   r   zBufferedIO.supports_utf8,   s     NDL11??AAAr   c                    | j         j                            d           | j         j                            d           d S Nr   )_inputstreamtruncateseekr    s    r   clear_user_inputzBufferedIO.clear_user_input/   s:    ##A&&&"""""r   
user_inputc                    |                                   | j        j                            |           | j        j                            d           d S r-   )r2   r.   r/   writer1   )r   r3   s     r   set_user_inputzBufferedIO.set_user_input3   sL      ,,,"""""r   )NFT)r   r   r   r   r   r   r   r   )r   r   )r   r   )r   r   )r3   r   r   r   )__name__
__module____qualname__r   r!   r$   r&   r(   r*   r   r2   r6   __classcell__)r   s   @r   r   r      s         #"	

 

 

 

 

 

 

: : : :@ @ @ @9 9 9 93 3 3 39 9 9 9B B B B# # # ## # # # # # # #r   r   N)
__future__r   typingr   r   cleo.io.inputs.string_inputr   
cleo.io.ior   cleo.io.outputs.buffered_outputr   cleo.io.inputs.inputr	   r    r   r   <module>rB      s    " " " " " "                   3 3 3 3 3 3       : : : : : :  +******(# (# (# (# (# (# (# (# (# (#r   