Cursor Left (CUB)
ESC[
Ⓝ
D
amount
= 1 (0 is 1)
Move the cursor to the left amount
cells.
If amount
is 0, adjust it to 1.
This unsets the pending wrap state without wrapping.
If not both of reverse wrap mode and wraparound mode are set:
- Move the cursor
amount
cells left. If it would cross the left-most column of the scrolling region, stop at the left-most column of the scrolling region. If the cursor would move left of the left-most column of the screen, move to the left most column of the screen.
Else:
- If the pending wrap state is set, reduce
amount
by one.
- If the cursor is left of the left-most column of the scrolling region:
- Move the cursor left
amount
of cells with the following rules:
- Each time the cursor is advanced past the left screen edge, continue on the right-most column of the scrolling region on the line above. If that would be before the top-most line of the screen resume on the bottom most line of the screen (ignoring the top and bottom margins of the scrolling region).
- If the cursor is on or right of the left-most column of the scrolling region:
- Move the cursor left
amount
of cells with the following rules:
- Each time the cursor is advanced past the left-most column of the scrolling region, continue on the right-most column of the scrolling region on the line above. If that would be before the top-most line of the screen resume on the bottom most line of the screen (ignoring the top and bottom margins of the scrolling region).
urxvt (
✓
)
🛆 If not both of reverse wrap mode and wraparound mode are set: If the pending wrap flag is set ´amount´ is reduced by one.
linuxvc (
✓
)
🛆 If cursor origin is active the cursor is constrained to the current scroll region.