Avoid redundant call to getLineHeight in CLIInput