Function cursorBack

  • Moves the cursor input cells back. If the cursor is already at the edge of the screen, this has no effect.

    Example

    cursorBack(13); // "\x1b[13C"
    

    Returns

    CUB sequence.

    Type Parameters

    • Input extends number | readonly [undefined | number, undefined | number]

    Parameters

    • input: Input

      Amount of cells back.

    Returns `[${Input extends readonly [undefined | number, undefined | number] ? `${Input[0] extends number ? any[any] : ""};${Input[1] extends number ? any[any] : ""}` : `${Input & number}`}D`