Function scrollUp

  • Scroll whole page up by input lines. New lines are added at the bottom.

    Example

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

    Returns

    SU sequence.

    Type Parameters

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

    Parameters

    • input: Input

      Amount of lines up.

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