@Override
	public void layoutsChanged(List<AnchoredLayout> layouts) {
		/**
		 * Don't just blow away the selection every key stroke; however, don't allow terminal
		 * changes to modify the selected text without the user knowing. That rule is directly
		 * implemented here. If the selected text changes, destroy the selection.
		 */
		if (!Objects.equals(selectedText, getSelectedText())) {
			fieldPanel.clearSelection();
		}
	}
NOTE: According to gdb's docs, it's common for terminals to use SHIFT to override
application mouse tracking:

https://sourceware.org/gdb/onlinedocs/gdb/TUI-Mouse-Support.html
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/terminal/TerminalPanel.java