What to include in terminal_stdout_re when developing a terminal plugin

3 views
Skip to first unread message

Matt Hickok

unread,
Jul 9, 2019, 3:38:09 PM7/9/19
to Ansible Project
Hello all, I am trying to understand how to build the terminal_stdout_re array of regex patterns for my terminal plugin and I can't find any documentation on this particular subject. 

For example, let's say that I need to run 2 commands, and I want to capture the output of the second device. 

The first command (select device) results in the following response:

b'select device\n\x02s\x03\r\n=>'

And the second command (show stuff) results in this response:

b'show stuff\nshow stuff\x02\r\nInterface 2\r\n\r\npieceOfInfo=9283       \r\nConfig Info         12eaej  = N         ddd= 930         \r\n\x03\r\n=>'

What regex entry(or entries) should I add to the  terminal_stdout_re so that it doesn't time out and so that it doesn't cut off the output from the second command? Or alternatively, is there any place to read about how this works?
Reply all
Reply to author
Forward
0 new messages