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__/defaults.cpython-39.pyc
a

��Shi�@s�ddlmZddlZddlmZmZmZddlmZm	Z	m
Z
ddlmZm
Z
ddlmZddlmZertdd	lmZd
gZddd
dd�dd
�ZdS)�)�annotationsN)�
TYPE_CHECKING�TextIO�cast)�get_bell_environment_variable�get_term_environment_variable�is_conemu_ansi�)�DummyOutput�Output)�
ColorDepth)�PlainTextOutput��StdoutProxy�
create_outputFzTextIO | StdoutProxy | None�boolr)�stdout�always_prefer_tty�returncCs t�}t�}t��}|durPtj}|rPtjtjfD]}|dur2|��r2|}qPq2ddlm	}t
||�rn|j}q\|dur|t�Stj
dkr�ddlm}ddlm}ddlm}	m}
|
�r�tt|	||d	��St�r�tt|||d	��S|||d	�Sn0dd
lm}|���s
t|�S|j||||d�SdS)aX
    Return an :class:`~prompt_toolkit.output.Output` instance for the command
    line.

    :param stdout: The stdout object
    :param always_prefer_tty: When set, look for `sys.stderr` if `sys.stdout`
        is not a TTY. Useful if `sys.stdout` is redirected to a file, but we
        still want user input and output on the terminal.

        By default, this is `False`. If `sys.stdout` is not a terminal (maybe
        it's redirected to a file), then a `PlainTextOutput` will be returned.
        That way, tools like `print_formatted_text` will write plain text into
        that file.
    Nrr�win32r	)�ConEmuOutput)�Win32Output)�Windows10_Output�is_win_vt100_enabled)�default_color_depth)�Vt100_Output)ZtermrZenable_bell)rrrZfrom_env�sysr�stderr�isatty�prompt_toolkit.patch_stdoutr�
isinstanceZoriginal_stdoutr
�platformZconemurrrZ	windows10rrrrrZvt100rr
Zfrom_pty)rrZ
term_from_envZ
bell_from_envZcolor_depth_from_env�iorrrrrr�r#�H/usr/local/lib/python3.9/site-packages/prompt_toolkit/output/defaults.pyrsL


��
�)NF)�
__future__rr�typingrrrZprompt_toolkit.utilsrrr�baser
rZcolor_depthrZ
plain_textr
rr�__all__rr#r#r#r$�<module>s��

Yohohohohohooho | Sanrei Aya