o
    ¹ei  ã                   @   s(   d dl mZmZmZ G dd„ deƒZdS )é    )Úabsolute_importÚprint_functionÚunicode_literalsc                   @   sl   e Zd Zdd„ Zdd„ Zddd„Zdd	„ Zddd„Zddd„Zdd„ Z	dd„ Z
ddd„Zdd„ Zdd„ ZdS )Úbaseconsolec                 C   ó   d S ©N© ©Úselfr   r   úOD:\Projects\ConvertPro\env\Lib\site-packages\pyreadline3/console/consolebase.pyÚ__init__   ó   zbaseconsole.__init__c                 C   ó   t ‚r   ©ÚNotImplementedErrorr	   r   r   r   Úbell   r   zbaseconsole.bellNc                 C   r   )z Move or query the window cursor.r   )r
   ÚxÚyr   r   r   Úpos   ó   zbaseconsole.posc                 C   r   r   r   r	   r   r   r   Úsize   r   zbaseconsole.sizeú c                 C   r   )zFill Rectangle.r   )r
   ÚrectÚattrÚfillr   r   r   Ú	rectangle   r   zbaseconsole.rectanglec                 C   r   )ah  write text at current cursor position while watching for scrolling.

        If the window scrolls because you are at the bottom of the screen
        buffer, all positions that you are storing will be shifted by the
        scroll amount. For example, I remember the cursor position of the
        prompt so that I can redraw the line but if the window scrolls,
        the remembered position is off.

        This variant of write tries to keep track of the cursor position
        so that it will know when the screen buffer is scrolled. It
        returns the number of lines that the buffer scrolled.

        r   )r
   Útextr   r   r   r   Úwrite_scrolling   s   zbaseconsole.write_scrollingc                 C   r   )z<Return next key press event from the queue, ignoring others.r   r	   r   r   r   Úgetkeypress&   r   zbaseconsole.getkeypressc                 C   r   r   r   )r
   r   r   r   r   Úwrite*   r   zbaseconsole.writec                 C   r   )zFill the entire screen.r   )r
   r   r   r   r   r   Úpage-   r   zbaseconsole.pagec                 C   s   dS )NTr   r	   r   r   r   Úisatty1   r   zbaseconsole.isattyc                 C   r   r   r   r	   r   r   r   Úflush4   r   zbaseconsole.flush)NN)Nr   r   )Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r   r   r    r!   r"   r   r   r   r   r      s    



r   N)Ú
__future__r   r   r   Úobjectr   r   r   r   r   Ú<module>   s    