Function ScrollbackBuffer.scrollUp

Scrolling controls.

void scrollUp(
  int lines = 1
);

Notice that scrollToTop needs width and height to know how to word wrap it to determine the number of lines present to scroll back.