I'm trying to set this mouse function on konsole, but I can't find a way, from https://docs.kde.org/stable5/en/konsole/konsole/semantic-shell-integration.html:
Clicking the mouse on text input will place the cursor in the clicked location. Configurable in the profile settings.
The cursor moves, but then if I write it goes back to where it was before, usually at the end of the line.