Horizontal Position Absolute (HPA)

Move the cursor to a specific column.

  1. 0x1B
    ESC
  2. 0x5B
    [
  3. ____
    x
  4. 0x60
    `

This sequence performs cursor position (CUP) with x set to the parameterized value and y set to the current cursor position. There is no additional or different behavior for using HPA.

Because this invokes CUP, the cursor row (x) can change if it is outside the bounds of the CUP operation. For example, if origin mode is set and the current cursor position is outside of the scroll region, the row will be adjusted.