public void forEachRun(RunConsumer action) {
		int length = length();
		if (length == 0) {
			action.accept(VtAttributes.DEFAULTS, 0, 0);
		}
		int first = 0;
		VtAttributes attrs = getCellAttrs(0);
		for (int x = 1; x < length; x++) {
			if (!attrs.equals(getCellAttrs(x))) {
				action.accept(attrs, first, x);
				first = x;
				attrs = getCellAttrs(x);
			}
		}
		action.accept(attrs, first, length);
	}
Execute an action on each run of contiguous characters having the same attributes, from left
to right.

@param action the callback action
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/terminal/vt/VtLine.java