Function scrollDown

  • Scroll whole page down by input lines. New lines are added at the top.

    Example

    scrollDown(13); // "\x1b[13S"
    

    Returns

    SD sequence.

    Type Parameters

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

    Parameters

    • input: Input

      Amount of lines down.

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