Function ScrollbackBuffer.drawInto

Draws the current state into the given terminal inside the given bounding box.

void drawInto(
  Terminal* terminal,
  in const(int) x = 0,
  in const(int) y = 0,
  int width = 0,
  int height = 0
);

Also updates its internal position and click region data which it uses for event filtering in [handleEvent].