protected Color resolveDefaultColor(WhichGround ground, ReverseVideo reverse,
			Intensity intensity) {
		Color color = switch (reverse) {
			case NORMAL -> switch (ground) {
				case FOREGROUND -> COLOR_FOREGROUND;
				case BACKGROUND -> null; // background is already drawn 
			};
			case REVERSED -> switch (ground) {
				case FOREGROUND -> COLOR_BACKGROUND;
				case BACKGROUND -> COLOR_FOREGROUND;
			};
		};
		if (color == null) {
			return null;
		}
		return switch (intensity) {
			case NORMAL -> color;
			case BOLD -> color.brighter();
			case DIM -> color.darker();
		};
	}
Process the given bytes as application output.

<p>
In most circumstances, there is a thread that just reads an output stream, usually from a
pty, and feeds it into this method.

@param buffer the buffer
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/terminal/TerminalPanel.java