Skip to content

CUU — Cursor Up

SequenceCSI <n> A
Bytes0x1B 0x5B <n> 0x41
MnemonicCUU
Otty support

Description

Moves the cursor up <n> rows in the current column. Default <n> = 1. The cursor does not move past the top of the active region (no scroll).

Example

bash
printf '\e[3A'      # move 3 rows up
printf '\e[A'       # move 1 row up

Otty