403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.170
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/IPython/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/IPython/utils/__pycache__/terminal.cpython-312.pyc
�

}�e�����dZddlZddlZddlZddlmZdaejdk(rd�Z	nejdk(rd�Z	nd	�Z	d
�Zd�Zd�Z
d
ad�Zd�Zejdk(r2ej"j%dd�Zej)d�rMeZeZ
nHejdk(r9ddlZej,j.j0Zej2ge_d�Zd�Zd�Zd�Zdd�Zy)z�
Utilities for working with terminals.

Authors:

* Brian E. Granger
* Fernando Perez
* Alexander Belchenko (e-mail: bialix AT ukr.net)
�N)�get_terminal_sizeT�posixc�.�tjd�y)N�clear��os�system���8/usr/lib/python3/dist-packages/IPython/utils/terminal.py�_term_clearr
s��
�	�	�'�r�win32c�.�tjd�y)N�clsrr
rrr
r
s��
�	�	�%�rc��y�Nr
r
rrr
r
 s��rc�
�|ay)a�Control whether set_term_title is active or not.

    set_term_title() allows writing to the console titlebar.  In embedded
    widgets this can cause problems, so this call can be used to toggle it on
    or off as needed.

    The default state of the module is for the function to be disabled.

    Parameters
    ----------
    val : bool
        If True, set_term_title() actually writes to the terminal (using the
        appropriate platform-specific module).  If False, it is a no-op.
    N)�ignore_termtitle)�vals r�toggle_set_term_titler%s�� �x�rc��y)zDummy no-op.Nr
)�args�kws  r�_set_term_titler8s��rc��yrr
r
rr�_restore_term_titler=s��rFc��ts!tjjd�datjjd|z�y)z3 Change virtual terminal title in xterm-workalikes zTz]0;%sN��_xterm_term_title_saved�sys�stdout�write��titles r�_set_term_title_xtermr%Ds6��
#��
�
����&�"&���J�J���_�u�,�-rc�V�tsJ�tjjd�day)NzFrr
rr�_restore_term_title_xtermr'Ps%��#�"�"��J�J���\�"�#�r�TERM��xtermc��t|�y)z9Set terminal title using ctypes to access the Win32 APIs.N)�SetConsoleTitleWr#s rrrcs
����rc�(�tryt|�y)z@Set terminal title using the necessary platform-dependent calls.N)rrr#s r�set_term_titler.hs�����E�rc�&�tryt�y)z:Restore, if possible, terminal title to the original stateN)rrr
rr�restore_term_titler0os�����rc�2�tjd�day)Nz8This function is deprecated, use toggle_set_term_title()T)�warnings�warnrr
rr�freeze_term_titler4vs���M�M�L�M��rc��t||f�Sr)�_get_terminal_size)�defaultx�defaultys  rrr|s���x��2�3�3r)�P�)�__doc__rr r2�shutilrr6r�namer
�platformrrrrr%r'�environ�getr(�
startswith�ctypes�windll�kernel32r,�	c_wchar_p�argtypesr.r0r4r
rr�<module>rGs����
�
��:����7�7�g����\�\�W���
�
 �&	�
	� ��	.�$��7�7�g��
�:�:�>�>�&��$�D����w��/��7���\�\�W����}�}�-�-�>�>��!'�!1�!1� 2��� �
���4r

Youez - 2016 - github.com/yon3zu
LinuXploit