@Override
	public int getScrollableUnitIncrement(int topOfScreen, int direction, int max) {
		if ((topOfScreen < -getHeightAbove()) || (topOfScreen > getHeightBelow())) {
			return max;
		}

		if (direction > 0) { // if scrolling down
			return getHeightBelow() - topOfScreen;
		}

		return -getHeightAbove() - topOfScreen;
	}
Paint a big cursor, so people can actually see it. Also, don't check column number. The
cursor is frequently past the end of the text, e.g., after pressing space in vim.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/terminal/TerminalTextField.java