Function cursorDown

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

    Example

    cursorDown(13); // "\x1b[13B"
    

    Returns

    CUD sequence.

    Type Parameters

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

    Parameters

    • input: Input

      Amount of cells down.

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