Appearance
ED at scroll region boundary โ
ED (Erase in Display) behavior when a scroll region (DECSTBM) is active varies by terminal. Some terminals erase only within the scroll region, while others erase the full screen regardless. The key edge case is that content outside the scroll region should generally be preserved by ED operations performed inside the region. This matters for applications that use scroll regions with fixed header/footer areas.
How this is tested: Write "KEEP_THIS" on row 0, set scroll region 3;10, move cursor inside region, send
\x1b[J (ED 0), verify row 0 still contains "KEEP_THIS".Analysis2026-03-26
Supported by all 5 tested terminals โ universal adoption. Part of the Core TUI baseline.
Supported by 11 of 11 backends (100%)
Terminal Applications โ
| Terminal | Version | Support | Notes |
|---|---|---|---|
| iTerm2 | 3.6.9 | โ yes | |
| Ghostty | 1.3.1 | โ yes | |
| VS Code | 1.112.0 | โ yes | |
| Warp | 0.2026.03.18.08.24.03 | โ yes | |
| Cursor | 2.6.21 | โ yes | |
| Kitty | 0.46.2 | โ yes | |
| Terminal.app | 2.15 | โ yes |