Investigate gocui package in Go which itself uses tcell
Investigate the control of mouse clicks on the Terminal and graphics in text mode applications.
gocui package in Go which itself uses tcell are nice tools, getting better.
Thanks to Jesse Duffield, author of lazydocker, for the info.