
    Vh 	                     j    d dl mZmZmZ eZd dlZd dlZd dlm	Z	 d dl
mZmZ d dlmZ  G d de      Zy)    )absolute_importdivisionprint_functionN)AnsibleConnectionFailure)to_textto_bytes)TerminalBasec                      e Zd Z ej                  d       ej                  d       ej                  d      gZ ej                  d       ej                  d       ej                  d       ej                  d      gZ ej                  d       ej                  d	ej                         ej                  d
ej                         ej                  d       ej                  dej                         ej                  dej                         ej                  dej                         ej                  dej                         ej                  d      g	Z	dZ
dZdZd Zy)TerminalModules   (\x1b\[\?1h\x1b=)s6   ((?:\x9b|\x1b\x5b)[\x30-\x3f]*[\x20-\x2f]*[\x40-\x7e])s   \x08.s2   [\r\n]?[\w]*\(.+\)\s*[\^\*]?(?:\[.+\])? ?#(?:\s*)$s   [pP]assword:$s5   (?<=\s)[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?\s*#\s*$s7   [\r\n]?[\w\+\-\.:\/\[\]]+(?:\([^\)]+\)){0,3}(?:[>#]) ?$s   % ?Errors   Error:s   ^% \w+s   % ?Bad secrets   invalid inputs    (?:incomplete|ambiguous) commands   connection timed outs   [^\r\n]+ not founds!   '[^']' +returned error code: ?\d+s   Press any key to continue   Fc                 X    	 | j                  d       y # t        $ r t        d      w xY w)Ns   no pagz!unable to set terminal parameters)_exec_cli_commandr   )selfs    l/home/dcms/DCMS/lib/python3.12/site-packages/ansible_collections/community/network/plugins/terminal/aruba.pyon_open_shellzTerminalModule.on_open_shell@   s3    	P""9-' 	P*+NOO	Ps    )N)__name__
__module____qualname__recompileansi_reterminal_stdout_reMIterminal_stderr_reterminal_initial_promptterminal_initial_answerterminal_inital_prompt_newliner        r   r   r      sI    	

()

MN

9	G 	

IJ

$%

LM

NO	 	

< 

:rtt$

:rtt$

$%

$bdd+

7>

+RTT2

)2440

89
 ;#%*"Pr    r   )
__future__r   r   r   type__metaclass__jsonr   ansible.errorsr   ansible.module_utils._textr   r   ansible.plugins.terminalr	   r   r   r    r   <module>r(      s0   & C B  	 3 8 1&P\ &Pr    