how to use mouse on terminal

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

Also in C++: