protected void resizeTerminalToWindow() {
		if (scroller == null) {
			// Some callback during construction
			return;
		}
		Rectangle bounds = scroller.getViewportBorderBounds();
		int cols = bounds.width / metrics.charWidth('M');
		int rows = bounds.height / metrics.getHeight();
		resizeTerminal((short) cols, (short) rows);
	}
Search the terminal's buffer for the given text.

<p>
The start location should be given, so that the search can progress to each successive
result. If no location is given, e.g., because this is the first time the user has searched,
then a default location will be chosen based on the search direction: the start for forward
or the end for backward.

@param text the text (or pattern for {@link FindOptions#REGEX})
@param options the search options
@param start the starting location, or null for a default
@param forward true to search forward, false to search backward
@return the range covering the found term, or null if not found
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/terminal/TerminalPanel.java