public int length() {
		return Math.min(len, cols);
	}
Get the length of the line, excluding trailing cleared characters

@return the length
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/terminal/vt/VtLine.java