@Override
	public int getCharacterIndexForDataLocation(int dataRow, int dataColumn) {
		if (dataRow == 0 && dataColumn >= 0 && dataColumn < length()) {
			return dataColumn;
		}
		return -1;
	}
Get the number of columns (total width, not just the used by the line)

@return the column count
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/terminal/TerminalTextFieldElement.java