
    Vhm                     l    d dl mZmZmZ eZd dlZd dlmZ d dl	m
Z
 d dlmZ  e       Z G d de
      Zy)    )absolute_importdivisionprint_functionN)AnsibleConnectionFailure)TerminalBase)Displayc                   |   e Zd Z ej                  d       ej                  d       ej                  d      gZdgZdZ ej                  d       ej                  d       ej                  d       ej                  d	      gZ ej                  d
       ej                  d       ej                  d      gZ	d Z
y)TerminalModules   (\x1b\[\?1h\x1b=)s6   ((?:\x9b|\x1b\x5b)[\x30-\x3f]*[\x20-\x2f]*[\x40-\x7e])s   \x08.s   \x1bZs   /Zs   \x1b<s*   \[[\w\-\.]+\@[\w\s\-\.\/]+\] ?(<SAFE)?> ?$s#   Please press \"Enter\" to continue!s5   Do you want to see the software license\? \[Y\/n\]: ?s   \nbad command names   \nno such items   \ninvalid value forc                    | j                         }	 |j                         j                  d      r| j                  d       |j                         j                  d      r| j                  d       y y # t        $ r t	        d      w xY w)N   :       !   
zunable to bypass license prompt)_get_promptstripendswith_exec_cli_commandr   )selfprompts     p/home/dcms/DCMS/lib/python3.12/site-packages/ansible_collections/community/routeros/plugins/terminal/routeros.pyon_open_shellzTerminalModule.on_open_shell-   s|    !!#	N||~&&t,&&t,||~&&t,&&u- -' 	N*+LMM	Ns   A A4 4B	N)__name__
__module____qualname__recompileansi_reterminal_initial_promptterminal_initial_answerterminal_stdout_reterminal_stderr_rer        r   r
   r
      s     	

()

MN

9	G 	 ( 	

9

AB

:;

LM	 	

)*

%&

*+Nr#   r
   )
__future__r   r   r   type__metaclass__r   ansible.errorsr   ansible.plugins.terminalr   ansible.utils.displayr   displayr
   r"   r#   r   <module>r+      s4   
 C B 	 3 1 )
)$N\ $Nr#   