Skip to content

HTS — Set Tab Stop

SequenceESC H
Bytes0x1B 0x48
MnemonicHTS
Otty support

Description

Sets a horizontal tab stop at the cursor's current column. Subsequent HT presses (\t) will advance to the next stop.

Tab stops are per-screen and reset by RIS. To clear stops individually, use CSI g (clear at cursor) or CSI 3 g (clear all).

Example

bash
printf '\e[20G\eH'      # move to column 20, set a tab stop there
printf 'a\tb\n'         # 'a', tab (now to col 20), 'b'

Otty