public void checkVerticalScroll() {
		while (curY >= scrollEnd) {
			scrollViewportDown(true);
			curY = Math.max(0, curY - 1);
		}
	}
If the cursor is beyond the bottom of the display, scroll the viewport down and move the
cursor up until the cursor is at the bottom of the display. If applicable, lines at the top
of the display is shifted into the scroll-back buffer.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/terminal/vt/VtBuffer.java