protected void activatedSelectAll(ActionContext ctx) {
		FieldSelection sel = new FieldSelection();
		BigInteger numIndexes = panel.model.getNumIndexes();
		if (numIndexes.equals(BigInteger.ZERO)) {
			return;
		}
		BigInteger lastIndex = numIndexes.subtract(BigInteger.ONE);
		TerminalLayout layout = panel.model.getLayout(lastIndex);
		int lastCol = layout.line.length();
		sel.addRange(
			new FieldLocation(BigInteger.ZERO, 0, 0, 0),
			new FieldLocation(lastIndex, 0, 0, lastCol));
		if (panel.getFieldPanel().getSelection().equals(sel)) {
			sel.clear();
		}
		panel.getFieldPanel().setSelection(sel, EventTrigger.GUI_ACTION);
	}
The search algorithm should work such that col == -1 works the same as the end of
the previous line -- or no result if its the first line.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/terminal/TerminalProvider.java