()
| 374 | |
| 375 | |
| 376 | def test_control() -> None: |
| 377 | console = Console(file=io.StringIO(), force_terminal=True, _environ={}) |
| 378 | console.control(Control.clear()) |
| 379 | console.print("BAR") |
| 380 | assert console.file.getvalue() == "\x1b[2JBAR\n" |
| 381 | |
| 382 | |
| 383 | def test_capture() -> None: |