static String strBuf(ByteBuffer buf) {
		byte[] arr = new byte[buf.remaining()];
		buf.get(buf.position(), arr);
		try {
			return new String(arr, "ASCII");
		}
		catch (UnsupportedEncodingException e) {
			throw new AssertionError(e);
		}
	}
Decode the byte buffer's contents to an ASCII string, used for diagnostics.

@param buf the buffer to examine
@return the string
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/terminal/vt/VtHandler.java