Appearance
CPL cursor preceding line (CSI F)
CSI Ps FCPL (Cursor Preceding Line) moves the cursor to the beginning of the line N rows up. The sequence is
CSI Ps F (default Ps=1). Unlike CUU, which preserves the column, CPL always sets the column to 1. CPL is the complement of CNL (Cursor Next Line, CSI E) — CNL moves down, CPL moves up, and both reset the column to the left margin.How this is tested: Position cursor at row 5, col 10, send
\x1b[2F (CPL 2), verify cursor is at row 3, column 0.Supported by 5 of 14 backends (36%)
Terminal Applications
| Terminal | Version | Support | Notes |
|---|---|---|---|
| iTerm2 | 3.6.9 | ? unknown | |
| Ghostty | 1.3.1 | ? unknown | |
| Kitty | 0.46.2 | ? unknown | |
| VS Code | 1.113.0 | ? unknown | |
| Warp | 0.2026.03.18.08.24.03 | ? unknown | |
| Cursor | 2.6.21 | ? unknown | |
| Terminal.app | 2.15 | ? unknown |