    def test_ansi_terminal_parser_os_cmd(self):
        """
        Check AnsiTerminalParser removes OS commands.
        """
        parser = AnsiTerminalParser()
        parser.reset("a\x1B]do something;stuff:to^ignore\x07b", None)
        tokens = parser.parse()
        self.assertEqual(next(tokens), (0, Parser.DISPLAY_TEXT, "a"))
        self.assertEqual(next(tokens), (1, Parser.DISPLAY_TEXT, "b"))
Check AnsiTerminalParser removes OS commands.
tests/test_parsers.py