Sets the current size and optionally publishes a TerminalResizeEvent if the size changed.
public void SetSize(TerminalSize size, bool raiseEvent = true)
The new size.
Whether to publish a resize event when the size changes.