(code)
| 74 | |
| 75 | @pytest.mark.parametrize("code", [*"0123456789:;<=>?"]) |
| 76 | def test_strip_private_escape_sequences(code): |
| 77 | text = Text.from_ansi(f"\x1b{code}x") |
| 78 | |
| 79 | console = Console(force_terminal=True) |
| 80 | |
| 81 | with console.capture() as capture: |
| 82 | console.print(text) |
| 83 | |
| 84 | expected = "x\n" |
| 85 | |
| 86 | assert capture.get() == expected |
| 87 | |
| 88 | |
| 89 | def test_decode_newlines(): |