
    ^Og)                         S r SSKrSSKr\R                  S:X  a  SSKr " S S\R
                  5      r\R                  4S jr\R                  4S jr	g)z6
Source: https://stackoverflow.com/a/10455937/2692667
    Nntc                   L    \ rS rSrS\R
                  4S\R                  4/rSrg)_CursorInfo   sizevisible N)	__name__
__module____qualname____firstlineno__ctypesc_intc_byte_fields___static_attributes__r	       P/Users/admin/workspace/ai/Jarvis/env/lib/python3.13/site-packages/halo/cursor.pyr   r      s    V\\*Y,FGr   r   c                    [         R                  S:X  a  [        5       n[        R                  R
                  R                  S5      n[        R                  R
                  R                  U[        R                  " U5      5        SUl	        [        R                  R
                  R                  U[        R                  " U5      5        g[         R                  S:X  a"  U R                  S5        U R                  5         gg)zgHide cursor.
Parameters
----------
stream: sys.stdout, Optional
    Defines stream to write output to.
r   Fposixz[?25lNosnamer   r   windllkernel32GetStdHandleGetConsoleCursorInfobyrefr   SetConsoleCursorInfowriteflushstreamcihandles      r   hider'      s     
ww$]''44S933FFLL<LM
33FFLL<LM	G	[! 
r   c                    [         R                  S:X  a  [        5       n[        R                  R
                  R                  S5      n[        R                  R
                  R                  U[        R                  " U5      5        SUl	        [        R                  R
                  R                  U[        R                  " U5      5        g[         R                  S:X  a"  U R                  S5        U R                  5         gg)zgShow cursor.
Parameters
----------
stream: sys.stdout, Optional
    Defines stream to write output to.
r   r   Tr   z[?25hNr   r#   s      r   showr)   !   s     
ww$]''44S933FFLL<LM
33FFLL<LM	G	[! 
r   )
__doc__sysr   r   r   	Structurer   stdoutr'   r)   r	   r   r   <module>r.      sP     	77d?Hf&& H 

 $ 

 r   