Appearance
CUP at screen boundaries โ
CUP (Cursor Position, CSI row ; col H) with out-of-bounds parameters should clamp the cursor to the screen edges rather than wrapping or producing undefined behavior. Sending
CSI 999 ; 999 H should place the cursor at the last row and last column of the visible screen. This is important for applications that use CUP with large values as a shorthand for "move to bottom-right corner" without querying screen dimensions first.How this is tested: Send
\x1b[999;999H, verify cursor is at (rows-1, cols-1) โ not beyond the screen boundaries.Analysis2026-03-26
Supported by all 5 tested terminals โ universal adoption. Part of the Core TUI baseline.
Supported by 10 of 11 backends (91%)
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 |