Terminal Guide

Cursor Up (CUU)

ESC1B[5B amount A41
urxvt
xterm
vte
konsole
linuxvc
amount = 1

Move the cursor up amount lines.

If amount is greater than the maximum move distance then it is internally adjusted to the maximum. If amount is 0, adjust it to 1.

This unsets the pending wrap state without wrapping.

If the current scroll region is set and the cursor is on or below top-most line of it then the cursor may move up only until it reaches the top-most line of current scroll region.

If the current scroll region is not set or the cursor is above top-most line of current scroll region it may move up until the top of the screen (excluding scroll-back buffer).

urxvt ( ✓ )

linuxvc ( ✓ )

🛆 If cursor origin is active the cursor is constrained to the current scroll region. Otherwise the scroll region is ignored.