Track Mouse Clicks in Command Line
===

I am a student at Oregon Institute of Technology and I am currently working at an internship doing automated testing in Ruby. That being said I have some free time when executing these tests which is spent on learning Ruby (making Minesweeper :P).

Anyway, onto my question. I have the game up and running, but what makes it not nearly as fun as the Microsoft version of Minesweeper is that my game does not support mouse clicks (It asks for x and y coords to flag or reveal). I know it's possible to detect mouse clicks in the command line in C++ (although I couldn't find anything on that either), but I do not know how to retrieve the coordinates of the mouse click in Ruby.

I believe the gem 'Win32API' or something similar will have what I am looking for, but I still cant find it. 

I want my command line Ruby Minesweeper game to be able to detect mouse clicks (what button was clicked and at what coordinates (x,y) ) on the "board" of the game instead of having to type in the x and y coordinates by hand every time you want to reveal a cell.

Can anyone help? 
Thanks