Function ScrollbackBuffer.scrollTopPosition

Given a size, how far would you have to scroll back to get to the top?

int scrollTopPosition(
  int width,
  int height
);

Please note that this is O(n) with the length of the scrollback buffer.