technique

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.

Also called: typed-text echo · keyboard text buffer with visible caret · backspace-aware text input

What it is

How it works

Parameters & tuning

Where it’s been used

Variants & neighbours

Go deeper


Revision 1 · 1 source · Something wrong? Tell us.