@Test
	@SuppressWarnings("resource")
	public void testSimulateLinuxPtyEchoPastEol() 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()),
				/**
				 * The echo command itself pays no heed to the terminal width. Wrapping is purely
				 * terminal side.
				 */
				"1234567890123456789012345678901234567890asdfasdf\r\n");

			assertEquals("1234567890123456789012345678901234567890", term.getLineText(0));
			assertEquals("asdfasdf", term.getLineText(1));
			assertEquals("", term.getLineText(2));
			assertEquals(0, term.getCursorColumn());
			assertEquals(2, term.getCursorRow());
		}
	}
Echoing characters back works similarly to sending characters. When the last
column is filled (the application knows the terminal width) Linux/bash sends an
extra space to induce a line wrap, then sends CR.
Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/app/plugin/core/terminal/TerminalProviderTest.java