
    F\h4                     V   S r SSKrSSKr " S S\5      rS\4S jr\" 5       r\R                  R                  \5      r
\R                  \R                  \R                  " \R                  5      /\
R                  l        \R                  \
R                  l        \R                  /\
R"                  l        \R$                  \
R"                  l        \R                  /S\R                  /-  -   \
R&                  l        \R                  \
R&                  l        SrSrS	 rS
 rSS jrg)ak  Minimal '_curses' module, the low-level interface for curses module
which is not meant to be used directly.

Based on ctypes.  It's too incomplete to be really called '_curses', so
to use it, you have to import it and stick it in sys.modules['_curses']
manually.

Note that there is also a built-in module _minimal_curses which will
hide this one if compiled in.
    Nc                       \ rS rSrSrg)error    N)__name__
__module____qualname____firstlineno____static_attributes__r       ./usr/lib/python3.13/_pyrepl/_minimal_curses.pyr   r      s    r   r   returnc                      / SQn U  H-  n[         R                  R                  U5      nU(       d  M+  Us  $    [        SSS9e)N)ncurseswncursescurseszcurses library not foundz_pyrepl._minimal_curses)name)ctypesutilfind_libraryModuleNotFoundError)trylibslibpaths      r   
_find_clibr      s@    /G{{'',4K  8?X
YYr   	   c                     [         R                  " S5      n[        R                  X[         R                  " U5      5      nU[
        :X  a  [        SUR                  -  5      eg )Nr   zsetupterm() failed (err=%d))r   c_intclib	setuptermbyrefERRr   value)termstrfderrresults       r   r!   r!   0   sI    
,,q/C^^Gc):;F}1CII=>> r   c                     [        U [        5      (       d  U R                  S5      n [        R	                  U 5      nU[
        :X  a  g [        R                  " U[        R                  5      R                  $ )Nascii)

isinstancebytesencoder    tigetstrr#   r   castc_char_pr$   )capr(   s     r   r.   r.   7   sP    c5!!jj!]]3F};;vv/555r   c
                 T    [         R                  XX#XEXgX5
      n
U
c  [        S5      eU
$ )Nztparm() returned NULL)r    tparmr   )stri1i2i3i4i5i6i7i8i9r(   s              r   r3   r3   @   s.    ZZ@F~+,,Mr   )	r   r   r   r   r   r   r   r   r   )__doc__r   ctypes.util	Exceptionr   r4   r   	_clibpathcdllLoadLibraryr    r0   r   POINTERr!   argtypesrestyper.   	c_ssize_tr3   OKr#   r   r   r   <module>rI      s   	  	I 	ZC Z L	{{y)!??FLL&..:VW   //* (( '!v||n*<<

 __

 
?6r   