So I was wondering how would I make it so that I can select a coordinate in a graph, using the mouse, similar to the effect that happens when you select a cell on the website http://demos.sftrabbit.co.uk/game-of-life/
I want to be able to use it on a Ubuntu OS. Thanks for any tips.
I would recommend that you use one of the C libraries for this. Either curses or ncurses. For some mouse examples with ncurses, take a look at:
http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/mouse.html
here’s a simple example that turns every position that you click on into an ‘X’: