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?