Parser
Terminal module to hold the parsing functions and constants.
- ANSI_ESCAPE_SEQ = re.compile('\\x1B(?:[@-Z\\\\-_]|\\[[0-?]*[ -/]*[@-~])')
The compiled regex to clean the ANSI escape sequence
- clean_parsed_text(text)[source]
Clean the parsed text.
- Return type:
Note
This will remove ANSI escape sequences and newline/returnlines feeds.
- Returns:
The cleaned string.
- Return type:
- find_output_by_index(index, output)[source]
Find a given output from the parsed output list with index.