Live text-entry echo with textWidth cursor
Accumulate typed characters into a String in keyPressed(), support backspace by trimming it, and draw a caret line at textWidth(buffer) so it tracks the true rendered width of what's been typed.
Accumulate typed characters into a String in keyPressed(), support backspace by trimming it, and draw a caret line at textWidth(buffer) so it tracks the true rendered width of what's been typed.