CHT Cursor Horizontal Tabulation
Move the cursor forward n tab stops.
CSI Pn I
- Defaults
- Pn = 1
- ECMA-48
- §8.3.10 CHT – Cursor Forward Tabulation, p. 34
- VT510
- CHT—Cursor Horizontal Forward Tabulation
Do what a horizontal tab does, Pn times: move the cursor right to the next tab stop, stopping at the right margin if there are no more. A 0 is taken as 1. CBT goes the other way.
Validation
CHT-1: One tab stop
\e[?5W # reset tab stops
\e[I
X
|________X___________|
CHT-2: Several tab stops
\e[?5W # reset tab stops
\e[2I
X
|________________X___|
CHT-3: Stops at the right margin
\e[?5W # reset tab stops
\e[9I
X
|___________________X|