o
    Ph                     @   s4   d dl Z ddlmZ defddZdefddZdS )	    N   )configreturnc                   C   s   t  S )z_Reads a single utf8-character from the input stream.
    Blocks until a character is available.)msvcrtgetwch r   r   M/var/www/html/env_mimamsha/lib/python3.10/site-packages/readchar/_win_read.pyreadchar   s   r	   c                  C   sb   t  } | tjv r
t| dv rdt   } d|   krdkr/n | S | t  7 } | jdddd} | S )z|Reads the next keypress. If an escaped key is pressed, the full
    sequence is read and returned as noted in `_win_key.py`.u    à u   u   zutf-16surrogatepass)errors)r	   r   INTERRUPT_KEYSKeyboardInterruptencodedecode)chr   r   r   readkey   s   


r   )r   _configr   strr	   r   r   r   r   r   <module>   s    