Skip to content

CUB — Cursor Back

SequenceCSI <n> D
Bytes0x1B 0x5B <n> 0x44
MnemonicCUB
Otty support

Description

Moves the cursor <n> columns to the left in the current row. Default <n> = 1. Clamps at column 1; no wrap.

Example

bash
printf '\e[5D'      # back 5 columns
  • CUU, CUD, CUF, CUP
  • BS — single-cell back (no scrolling, no SGR effect either way).

Otty