Yohohohohohooho | Sanrei Aya
Sanrei Aya


Server : LiteSpeed
System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : elvh3918 ( 1528)
PHP Version : 8.2.31
Disable Function : mail
Directory :  /usr/local/lib/python3.9/site-packages/prompt_toolkit/output/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/local/lib/python3.9/site-packages/prompt_toolkit/output/__pycache__/base.cpython-39.pyc
a

��Sh� �@s�dZddlmZddlmZmZddlmZddlm	Z	ddl
mZddlm
Z
dd	lmZd
dgZGdd
�d
ed
�ZGdd�de�ZdS)z
Interface for an output.
�)�annotations)�ABCMeta�abstractmethod)�TextIO)�CursorShape��Size)�Attrs�)�
ColorDepth�Output�DummyOutputc@s�eZdZUdZdZded<edd�dd��Zed	d�d
d��Zed	dd
�dd��Z	ed	dd
�dd��Z
ed	dd�dd��Zedd�dd��Zedd�dd��Z
edd�dd��Zedd�dd��Zedd�dd��Zedd�dd ��Zedd�d!d"��Zedd�d#d$��Zedd�d%d&��Zedd�d'd(��Zed)d*dd+�d,d-��Zedd�d.d/��Zedd�d0d1��Zed_dddd3�d4d5��Zeddd6�d7d8��Zeddd6�d9d:��Zeddd6�d;d<��Zeddd6�d=d>��Zedd�d?d@��Zedd�dAdB��ZedCddD�dEdF��Z edd�dGdH��Z!dd�dIdJ�Z"e#dKd�dLdM��Z$edNd�dOdP��Z%dd�dQdR�Z&dd�dSdT�Z'dd�dUdV�Z(dd�dWdX�Z)dd�dYdZ�Z*dd�d[d\�Z+ed*d�d]d^��Z,dS)`rz�
    Base class defining the output interface for a
    :class:`~prompt_toolkit.renderer.Renderer`.

    Actual implementations are
    :class:`~prompt_toolkit.output.vt100.Vt100_Output` and
    :class:`~prompt_toolkit.output.win32.Win32Output`.
    Nz
TextIO | None�stdout�int��returncCsdS)z@Return the file descriptor to which we can write for the output.N���selfrr�D/usr/local/lib/python3.9/site-packages/prompt_toolkit/output/base.py�fileno"sz
Output.fileno�strcCsdS)z�
        Return the encoding for this output, e.g. 'utf-8'.
        (This is used mainly to know which characters are supported by the
        output the data, so that the UI can provide alternatives, when
        required.)
        Nrrrrr�encoding&szOutput.encoding�None��datarcCsdS)z?Write text (Terminal escape sequences will be removed/escaped.)Nr�rrrrr�write/szOutput.writecCsdS)zWrite text.Nrrrrr�	write_raw3szOutput.write_raw��titlercCsdS)zSet terminal title.Nr�rr rrr�	set_title7szOutput.set_titlecCsdS)z/Clear title again. (or restore previous title.)Nrrrrr�clear_title;szOutput.clear_titlecCsdS)z!Write to output stream and flush.Nrrrrr�flush?szOutput.flushcCsdS)zc
        Erases the screen with the background color and moves the cursor to
        home.
        Nrrrrr�erase_screenCszOutput.erase_screencCsdS)zBGo to the alternate screen buffer. (For full screen applications).Nrrrrr�enter_alternate_screenJszOutput.enter_alternate_screencCsdS)z"Leave the alternate screen buffer.Nrrrrr�quit_alternate_screenNszOutput.quit_alternate_screencCsdS)z
Enable mouse.Nrrrrr�enable_mouse_supportRszOutput.enable_mouse_supportcCsdS)zDisable mouse.Nrrrrr�disable_mouse_supportVszOutput.disable_mouse_supportcCsdS)zY
        Erases from the current cursor position to the end of the current line.
        Nrrrrr�erase_end_of_lineZszOutput.erase_end_of_linecCsdS)zc
        Erases the screen from the current line down to the bottom of the
        screen.
        Nrrrrr�
erase_down`szOutput.erase_downcCsdS)z#Reset color and styling attributes.Nrrrrr�reset_attributesgszOutput.reset_attributesr	r��attrs�color_depthrcCsdS)z%Set new color and styling attributes.Nr�rr.r/rrr�set_attributeskszOutput.set_attributescCsdS)zDisable auto line wrapping.Nrrrrr�disable_autowraposzOutput.disable_autowrapcCsdS)zEnable auto line wrapping.Nrrrrr�enable_autowrapsszOutput.enable_autowrapr��row�columnrcCsdS)zMove cursor position.Nr�rr5r6rrr�cursor_gotowszOutput.cursor_goto��amountrcCsdS)zMove cursor `amount` place up.Nr�rr:rrr�	cursor_up{szOutput.cursor_upcCsdS)z Move cursor `amount` place down.Nrr;rrr�cursor_downszOutput.cursor_downcCsdS)z#Move cursor `amount` place forward.Nrr;rrr�cursor_forward�szOutput.cursor_forwardcCsdS)z$Move cursor `amount` place backward.Nrr;rrr�cursor_backward�szOutput.cursor_backwardcCsdS)zHide cursor.Nrrrrr�hide_cursor�szOutput.hide_cursorcCsdS)zShow cursor.Nrrrrr�show_cursor�szOutput.show_cursorr��cursor_shapercCsdS)z-Set cursor shape to block, beam or underline.Nr�rrCrrr�set_cursor_shape�szOutput.set_cursor_shapecCsdS)zReset cursor shape.Nrrrrr�reset_cursor_shape�szOutput.reset_cursor_shapecCsdS)zP
        Asks for a cursor position report (CPR).
        (VT100 only.)
        Nrrrrr�ask_for_cpr�szOutput.ask_for_cpr�boolcCsdS)a
        `True` if the `Application` can expect to receive a CPR response after
        calling `ask_for_cpr` (this will come back through the corresponding
        `Input`).

        This is used to determine the amount of available rows we have below
        the cursor position. In the first place, we have this so that the drop
        down autocompletion menus are sized according to the available space.

        On Windows, we don't need this, there we have
        `get_rows_below_cursor_position`.
        Frrrrr�responds_to_cpr�szOutput.responds_to_cprrcCsdS)z%Return the size of the output window.Nrrrrr�get_size�szOutput.get_sizecCsdS)zSound bell.Nrrrrr�bell�szOutput.bellcCsdS�zFor vt100 only.Nrrrrr�enable_bracketed_paste�szOutput.enable_bracketed_pastecCsdSrLrrrrr�disable_bracketed_paste�szOutput.disable_bracketed_pastecCsdS)z�
        For vt100 only.
        Put the terminal in normal cursor mode (instead of application mode).

        See: https://vt100.net/docs/vt100-ug/chapter3.html
        Nrrrrr�reset_cursor_key_mode�szOutput.reset_cursor_key_modecCsdS)zFor Win32 only.Nrrrrr�scroll_buffer_to_prompt�szOutput.scroll_buffer_to_promptcCst�dS)zFor Windows only.N��NotImplementedErrorrrrr�get_rows_below_cursor_position�sz%Output.get_rows_below_cursor_positioncCsdS)a
        Get default color depth for this output.

        This value will be used if no color depth was explicitly passed to the
        `Application`.

        .. note::

            If the `$PROMPT_TOOLKIT_COLOR_DEPTH` environment variable has been
            set, then `outputs.defaults.create_output` will pass this value to
            the implementation as the default_color_depth, which is returned
            here. (This is not used when the output corresponds to a
            prompt_toolkit SSH/Telnet session.)
        Nrrrrr�get_default_color_depth�szOutput.get_default_color_depth)rr)-�__name__�
__module__�__qualname__�__doc__r�__annotations__rrrrrr"r#r$r%r&r'r(r)r*r+r,r1r2r3r8r<r=r>r?r@rArErFrG�propertyrIrJrKrMrNrOrPrSrTrrrrrs�
	)�	metaclassc@seZdZdZdd�dd�Zdd�dd�Zdd	d
�dd�Zdd	d
�d
d�Zdd	d�dd�Zd	d�dd�Z	d	d�dd�Z
d	d�dd�Zd	d�dd�Zd	d�dd�Z
d	d�dd�Zd	d�dd�Zd	d�d d!�Zd	d�d"d#�Zd	d�d$d%�Zd&d'd	d(�d)d*�Zd	d�d+d,�Zd	d�d-d.�ZdXddd	d0�d1d2�Zdd	d3�d4d5�Zdd	d3�d6d7�Zdd	d3�d8d9�Zdd	d3�d:d;�Zd	d�d<d=�Zd	d�d>d?�Zd@d	dA�dBdC�Zd	d�dDdE�Zd	d�dFdG�Zd	d�dHdI�Z d	d�dJdK�Z!d	d�dLdM�Z"d	d�dNdO�Z#dPd�dQdR�Z$dd�dSdT�Z%d'd�dUdV�Z&dWS)Yr
zD
    For testing. An output class that doesn't render anything.
    rrcCst�dS)z*There is no sensible default for fileno().NrQrrrrr�szDummyOutput.filenorcCsdS)Nzutf-8rrrrrr�szDummyOutput.encodingrrcCsdS�Nrrrrrr�szDummyOutput.writecCsdSr\rrrrrr�szDummyOutput.write_rawrcCsdSr\rr!rrrr"�szDummyOutput.set_titlecCsdSr\rrrrrr#�szDummyOutput.clear_titlecCsdSr\rrrrrr$�szDummyOutput.flushcCsdSr\rrrrrr%�szDummyOutput.erase_screencCsdSr\rrrrrr&�sz"DummyOutput.enter_alternate_screencCsdSr\rrrrrr'sz!DummyOutput.quit_alternate_screencCsdSr\rrrrrr(sz DummyOutput.enable_mouse_supportcCsdSr\rrrrrr)sz!DummyOutput.disable_mouse_supportcCsdSr\rrrrrr*	szDummyOutput.erase_end_of_linecCsdSr\rrrrrr+szDummyOutput.erase_downcCsdSr\rrrrrr,szDummyOutput.reset_attributesr	rr-cCsdSr\rr0rrrr1szDummyOutput.set_attributescCsdSr\rrrrrr2szDummyOutput.disable_autowrapcCsdSr\rrrrrr3szDummyOutput.enable_autowraprr4cCsdSr\rr7rrrr8szDummyOutput.cursor_gotor9cCsdSr\rr;rrrr<szDummyOutput.cursor_upcCsdSr\rr;rrrr=!szDummyOutput.cursor_downcCsdSr\rr;rrrr>$szDummyOutput.cursor_forwardcCsdSr\rr;rrrr?'szDummyOutput.cursor_backwardcCsdSr\rrrrrr@*szDummyOutput.hide_cursorcCsdSr\rrrrrrA-szDummyOutput.show_cursorrrBcCsdSr\rrDrrrrE0szDummyOutput.set_cursor_shapecCsdSr\rrrrrrF3szDummyOutput.reset_cursor_shapecCsdSr\rrrrrrG6szDummyOutput.ask_for_cprcCsdSr\rrrrrrK9szDummyOutput.bellcCsdSr\rrrrrrM<sz"DummyOutput.enable_bracketed_pastecCsdSr\rrrrrrN?sz#DummyOutput.disable_bracketed_pastecCsdSr\rrrrrrPBsz#DummyOutput.scroll_buffer_to_promptrcCstddd�S)N�(�P)�rows�columnsrrrrrrJEszDummyOutput.get_sizecCsdS)Nr]rrrrrrSHsz*DummyOutput.get_rows_below_cursor_positioncCstjSr\)rZDEPTH_1_BITrrrrrTKsz#DummyOutput.get_default_color_depthN)rr)'rUrVrWrXrrrrr"r#r$r%r&r'r(r)r*r+r,r1r2r3r8r<r=r>r?r@rArErFrGrKrMrNrPrJrSrTrrrrr
�sHN)rX�
__future__r�abcrr�typingrZprompt_toolkit.cursor_shapesrZprompt_toolkit.data_structuresrZprompt_toolkit.stylesr	r/r�__all__rr
rrrr�<module>s�J

Yohohohohohooho | Sanrei Aya