@Test
	@SuppressWarnings("resource")
	public void testSimulateLinuxPtyTypePastEolLastLine() throws Exception {
		terminalService = addPlugin(tool, TerminalPlugin.class);

		try (DefaultTerminal term = (DefaultTerminal) terminalService
				.createNullTerminal(Charset.forName("UTF-8"), buf -> {
				})) {
			term.setFixedSize(40, 25);

			send(term,
				title(name.getMethodName()),
				"top line\r\n",
				StringUtils.repeat("\r\n", 23),
				"123456789012345678901234567890123456789", // One before the last column
				"0 \r");

			assertEquals(1, term.getScrollBackRows());
			assertEquals("top line", term.getLineText(-1));
			assertEquals("1234567890123456789012345678901234567890", term.getLineText(23));
			assertEquals(" ", term.getLineText(24));
			assertEquals(0, term.getCursorColumn());
			assertEquals(24, term.getCursorRow());
		}
	}
The echo command itself pays no heed to the terminal width. Wrapping is purely
terminal side.
Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/app/plugin/core/terminal/TerminalProviderTest.java