__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

���g���r�SrSSKrSSKrSSKrSSKrSSKr"SS\5r"SS\5r	"SS\5r
g)	z
Terminal / input handling
�Nc�T�\rSrSrSrSrSrSrSrSr	S
S	jr
SS
jrSSjrSr
g)�Terminal�z8
Do minimal terminal mangling to prompt users for input
c�L�XlSUlSUlUR5 g�N)�fd�
orig_flags�	orig_term�save)�selfrs  �*/usr/share/netplan/netplan_cli/terminal.py�__init__�Terminal.__init__"s�����������	�	��c�P�[RR5(a�[R"UR
5nUS[R-US'US[R-US'[R"UR
[RU5 gg�N��
�sys�stdin�isatty�termios�	tcgetattrr�ICANON�ECHO�	tcsetattr�TCSANOW�r�attrss  r
�enable_echo�Terminal.enable_echo(st���9�9������%�%�d�g�g�.�E��Q�x�'�.�.�0�E�!�H��Q�x�'�,�,�.�E�!�H����d�g�g�w����>�	rc�T�[RR5(a�[R"UR
5nUS[R)-US'US[R)-US'[R"UR
[RU5 ggrrrs  r
�disable_echo�Terminal.disable_echo/sx���9�9������%�%�d�g�g�.�E��Q�x�7�>�>�/�1�E�!�H��Q�x�7�<�<�-�/�E�!�H����d�g�g�w����>�	rc���[R"UR[R5n[R"UR[RU[R
-5 gr��fcntlr�F_GETFL�F_SETFL�os�
O_NONBLOCK�r�flagss  r
�enable_nonblocking_io�Terminal.enable_nonblocking_io6s;�����D�G�G�U�]�]�3��
���D�G�G�U�]�]�E�B�M�M�,A�Brc���[R"UR[R5n[R"UR[RU[R
)-5 grr&r,s  r
�disable_nonblocking_io�Terminal.disable_nonblocking_io:s=�����D�G�G�U�]�]�3��
���D�G�G�U�]�]�E�R�]�]�N�,B�CrNc
�~�[S5 [5nURU5 UR5 UR	5 U(dSn[SRU55 UnUS:�a�[SRU[
[U555SS9 [R"[R///S5 [RR5nUS	:XaURU5 [5eUS-nUS:�aM�URU5 [5e![a N4f=f)
a]
Get a "confirmation" input from the user, for at most (timeout)
seconds. Optionally, customize the message to be displayed.

timeout -- timeout to wait for input (default 120)
message -- optional customized message ("Press ENTER to (message)")

raises:
InputAccepted -- the user confirmed the changes
InputRejected -- the user rejected the changes
z%Do you want to keep these settings?

zaccept the new configurationz&Press ENTER before the timeout to {}

rz%Changes will revert in {:>{}} seconds�
)�end��
)�print�dictrr#r.�format�len�str�selectrr�read�reset�
InputAccepted�	TypeError�
InputRejected)r�timeout�message�settings�timeout_now�cs      r
�get_confirmation_input�Terminal.get_confirmation_input>s��	�7�8��6���	�	�(�������"�"�$��4�G�
�8�?�?��H�I����Q���9�@�@��c�RU�V]�R^�N_�`�fj�k�
�M�M�3�9�9�+�r�2�q�1�
��I�I�N�N�$����I��J�J�x�(�'�/�)��
�1��K�%�Q��.	
�
�
�8���o����
��	
�s�?D/�/
D<�;D<c�4�[R"UR[R5nSn[RR5(a [R"UR5nUbURUUS.5 gX l	X0l
g)zu
Save the terminal's current attributes and flags

Optional argument:
    - dest: if set, save settings to this dict
N)r-�term)r'rr(rrrrr�updater	r
)r�destr	r
s    r
r�
Terminal.savepsp���[�[����%�-�-�8�
��	��9�9������)�)�$�'�'�2�I����K�K�*�!*�,�
-�)�O�&�Nrc��SnSnUb#URS5nURS5nOURnURn[RR5(a0[R"UR[RU5 [R"UR[RU5 g)z�
Reset the terminal to its original attributes and flags

Optional argument:
    - orig: if set, reset to settings from this dict
NrKr-)�getr
r	rrrrrr�	TCSAFLUSHr'r))r�origr
r	s    r
r?�Terminal.reset�s����	��
�������(�I����'�*�J����I����J��9�9��������d�g�g�w�'8�'8�)�D�
���D�G�G�U�]�]�J�7r)rr	r
)�xNr)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr r#r.r1rHrr?�__static_attributes__�rr
rrs2����?�?�C�D�0�d'�$8rrc��\rSrSrSrSrg)r@�zDenotes has accepted inputr[N�rUrVrWrXrYrZr[rr
r@r@�s��%�rr@c��\rSrSrSrSrg)rB�z(Denotes that the user has rejected inputr[Nr^r[rr
rBrB�s��3�rrB)rYr'r*rr=r�objectr�	Exceptionr@rBr[rr
�<module>rcsB��$�
�	��
�
�v8�v�v8�r	�I�	�
	�I�	r

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 211 B 0644
_features.cpython-313.pyc File 402 B 0644
configmanager.cpython-313.pyc File 9.23 KB 0644
terminal.cpython-313.pyc File 6.65 KB 0644
Filemanager