use mouse in iterm input command

C++
Just keep pressed "ALT" and then select position with a click ;)
Source

Also in C++: